fix: mark backup progress complete unconditionally

Remove the backup_succeeded gate so the progress indicator updates
regardless of the backup outcome — the status field already captures
success/failure separately.
This commit is contained in:
Aiden McClelland
2026-03-24 19:19:47 -06:00
parent aaa43ce6af
commit ee95eef395

View File

@@ -30,7 +30,6 @@ impl ServiceActorSeed {
ErrorKind::Cancelled, ErrorKind::Cancelled,
)) ))
}; };
let backup_succeeded = res.is_ok();
let id = &self.id; let id = &self.id;
self.ctx self.ctx
.db .db
@@ -52,16 +51,14 @@ impl ServiceActorSeed {
x => x, x => x,
}) })
})?; })?;
if backup_succeeded { if let Some(progress) = db
if let Some(progress) = db .as_public_mut()
.as_public_mut() .as_server_info_mut()
.as_server_info_mut() .as_status_info_mut()
.as_status_info_mut() .as_backup_progress_mut()
.as_backup_progress_mut() .transpose_mut()
.transpose_mut() {
{ progress.insert(id, &BackupProgress { complete: true })?;
progress.insert(id, &BackupProgress { complete: true })?;
}
} }
Ok(()) Ok(())
}) })