This commit is contained in:
2025-04-13 14:00:48 -04:00
parent 9a59a0dfcc
commit b4793a20df

View File

@@ -37,15 +37,6 @@ pub mod db {
#[cfg(debug_assertions)] // Example: Only load .env in debug builds #[cfg(debug_assertions)] // Example: Only load .env in debug builds
dotenvy::dotenv().ok(); dotenvy::dotenv().ok();
env::var(keys::DBURL).expect(keys::error::ERROR) env::var(keys::DBURL).expect(keys::error::ERROR)
/*
match dotenvy::from_filename("auth_db.env") {
Ok(_) =>
Err(err) => {
eprintln!("Error loading db env files {:?}", err);
String::new()
}
}
*/
} }
pub async fn migrations(pool: &sqlx::PgPool) { pub async fn migrations(pool: &sqlx::PgPool) {