From 499ec44025f0b0c32b28b78735e0ee2633054053 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sun, 8 Dec 2024 18:33:04 +0100 Subject: [PATCH] fix postgres --- src/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), );