You've already forked AstralRinth
forked from didirus/AstralRinth
fix(env): Hotfixed the env name (#27)
This commit is contained in:
@@ -6,7 +6,7 @@ use mongodb::Client;
|
|||||||
pub async fn connect() -> Result<Client, Error> {
|
pub async fn connect() -> Result<Client, Error> {
|
||||||
info!("Initializing database connection");
|
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_options.app_name = Some("labrinth".to_string());
|
||||||
|
|
||||||
Client::with_options(client_options)
|
Client::with_options(client_options)
|
||||||
|
|||||||
Reference in New Issue
Block a user