From 73968e42770132ff4b0f59111c1cdd2d11dbf510 Mon Sep 17 00:00:00 2001 From: Valentin Ricard Date: Tue, 30 Jun 2020 20:00:41 +0200 Subject: [PATCH] fix(env): Hotfixed the env name (#27) --- src/database/mongo_database.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/mongo_database.rs b/src/database/mongo_database.rs index 911127c2..5a4f35a3 100644 --- a/src/database/mongo_database.rs +++ b/src/database/mongo_database.rs @@ -6,7 +6,7 @@ use mongodb::Client; pub async fn connect() -> Result { 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)