fix(env): Hotfixed the env name (#27)

This commit is contained in:
Valentin Ricard
2020-06-30 20:00:41 +02:00
committed by GitHub
parent 7a6ecd86c6
commit 73968e4277

View File

@@ -6,7 +6,7 @@ use mongodb::Client;
pub async fn connect() -> Result<Client, Error> {
info!("Initializing database connection");
let mut client_options = ClientOptions::parse(&dotenv::var("PORT").unwrap()).await?;
let mut client_options = ClientOptions::parse(&dotenv::var("MONGODB_ADDR").unwrap()).await?;
client_options.app_name = Some("labrinth".to_string());
Client::with_options(client_options)