mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-11 04:11:30 -06:00
Fix VACUUM INTO query error handling
This commit is contained in:
parent
668f1bdedf
commit
717ebfbf89
@ -403,6 +403,7 @@ pub fn backup_sqlite() -> Result<String, Error> {
|
||||
diesel::sql_query("VACUUM INTO ?")
|
||||
.bind::<diesel::sql_types::Text, _>(&backup_file)
|
||||
.execute(&mut conn)
|
||||
.map(|_| ())
|
||||
.map_res("VACUUM INTO failed")?;
|
||||
|
||||
Ok(backup_file)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user