diff --git a/src/noose/sqlite.rs b/src/noose/sqlite.rs index 43f2b77..f471873 100644 --- a/src/noose/sqlite.rs +++ b/src/noose/sqlite.rs @@ -198,9 +198,7 @@ pub struct NostrSqlite { impl NostrSqlite { pub async fn new(config: Arc) -> Self { - let env_db_path = std::env::var("DATABASE_URL").unwrap_or("/tmp/sqlite.db".to_string()); - - let cfg = Config::new(env_db_path); + let cfg = Config::new(config.get_db_path()); let pool = cfg.create_pool(Runtime::Tokio1).unwrap(); if NostrSqlite::run_migrations(&pool).await {