Skip to content

Commit

Permalink
remove duplicate / when building local sqlite backup file path (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebadob authored Oct 6, 2024
1 parent ca09f77 commit 423ac94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/src/migration/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub async fn backup_db(db: &DbPool) -> Result<(), ErrorResponse> {
)
})?;

let backup_file_path = format!("{}/rauthy.db", path_base);
let backup_file_path = format!("{}rauthy.db", path_base);
if DATABASE_URL.starts_with("sqlite:") {
let q = format!("VACUUM main INTO '{}'", backup_file_path);
sqlx::query(&q)
Expand Down

0 comments on commit 423ac94

Please sign in to comment.