diff --git a/src/db.rs b/src/db.rs index b08282d..19695b4 100644 --- a/src/db.rs +++ b/src/db.rs @@ -25,7 +25,7 @@ impl DatabaseBackend { postgres = Some( sqlx::postgres::PgPoolOptions::new() .max_connections(5) - .connect(&std::env::var("DATABASE_URL").unwrap()) + .connect(db_url) .await .unwrap(), );