mirror of
https://github.com/BreizhHardware/ntfy_alerts.git
synced 2026-01-18 16:37:28 +01:00
fix(api): update default database path to '/github-ntfy'
This commit is contained in:
@@ -16,7 +16,7 @@ struct RepoRequest {
|
||||
|
||||
pub async fn start_api() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
// Open the database
|
||||
let db_path = env::var("DB_PATH").unwrap_or_else(|_| "./data".to_string());
|
||||
let db_path = env::var("DB_PATH").unwrap_or_else(|_| "/github-ntfy".to_string());
|
||||
std::fs::create_dir_all(&db_path).ok();
|
||||
let repos_path = format!("{}/watched_repos.db", db_path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user