Cleanup
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user