From fe717d993b068bd2a5ca2c3023a897526bdef38f Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 6 Mar 2024 15:58:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BF=AB=E7=85=A7=E9=87=8D=E8=AF=95?= =?UTF-8?q?=E5=90=8E=E6=9B=B4=E6=96=B0=E5=88=97=E8=A1=A8=E7=8A=B6=E6=80=81?= =?UTF-8?q?=20(#4086)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/snapshot.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/app/service/snapshot.go b/backend/app/service/snapshot.go index 8b616a9b0aac..cf6c3f0fe17e 100644 --- a/backend/app/service/snapshot.go +++ b/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