mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
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:
@@ -30,7 +30,6 @@ impl ServiceActorSeed {
|
||||
ErrorKind::Cancelled,
|
||||
))
|
||||
};
|
||||
let backup_succeeded = res.is_ok();
|
||||
let id = &self.id;
|
||||
self.ctx
|
||||
.db
|
||||
@@ -52,16 +51,14 @@ impl ServiceActorSeed {
|
||||
x => x,
|
||||
})
|
||||
})?;
|
||||
if backup_succeeded {
|
||||
if let Some(progress) = db
|
||||
.as_public_mut()
|
||||
.as_server_info_mut()
|
||||
.as_status_info_mut()
|
||||
.as_backup_progress_mut()
|
||||
.transpose_mut()
|
||||
{
|
||||
progress.insert(id, &BackupProgress { complete: true })?;
|
||||
}
|
||||
if let Some(progress) = db
|
||||
.as_public_mut()
|
||||
.as_server_info_mut()
|
||||
.as_status_info_mut()
|
||||
.as_backup_progress_mut()
|
||||
.transpose_mut()
|
||||
{
|
||||
progress.insert(id, &BackupProgress { complete: true })?;
|
||||
}
|
||||
Ok(())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user