mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +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,
|
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(())
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user