Skip to content

Commit

Permalink
fix: 快照重试后更新列表状态 (#4086)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssongliu committed Mar 6, 2024
1 parent 703da8a commit fe717d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/app/service/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ func (u *SnapshotService) HandleSnapshot(isCronjob bool, logPath string, req dto
if err != nil {
return "", err
}
_ = snapshotRepo.Update(snap.ID, map[string]interface{}{"status": constant.StatusWaiting})
snapStatus, _ = snapshotRepo.GetStatus(snap.ID)
if snapStatus.ID == 0 {
snapStatus.SnapID = snap.ID
Expand Down

0 comments on commit fe717d9

Please sign in to comment.