This commit is contained in:
Felix Ableitner 2024-12-10 10:13:00 +01:00
parent 503f6296fa
commit 0f6cb19140

View file

@ -49,7 +49,7 @@ impl Settings {
pub fn get_database_url(&self) -> String { pub fn get_database_url(&self) -> String {
if let Ok(url) = env::var("LEMMY_DATABASE_URL") { if let Ok(url) = env::var("LEMMY_DATABASE_URL") {
return url; url
} else { } else {
self.database.connection.clone() self.database.connection.clone()
} }