Browse Source

fix: 快照重试后更新列表状态 (#4086)

pull/4088/head v1.10.1-lts
ssongliu 9 months ago committed by GitHub
parent
commit
fe717d993b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      backend/app/service/snapshot.go

1
backend/app/service/snapshot.go

@ -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

Loading…
Cancel
Save