From 5222caecf961373560f90477e40a74b5fe9a0dd3 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Tue, 13 Jun 2023 12:28:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BA=94=E7=94=A8=E6=81=A2=E5=A4=8D?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E7=89=88=E6=9C=AC=E9=99=90=E5=88=B6=20(#1365?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/backup_app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/service/backup_app.go b/backend/app/service/backup_app.go index 7b675c43d..19b92d625 100644 --- a/backend/app/service/backup_app.go +++ b/backend/app/service/backup_app.go @@ -148,7 +148,7 @@ func handleAppRecover(install *model.AppInstall, recoverFile string, isRollback if err := json.Unmarshal(appjson, &oldInstall); err != nil { return fmt.Errorf("unmarshal app.json failed, err: %v", err) } - if oldInstall.App.Key != install.App.Key || oldInstall.Name != install.Name || oldInstall.Version != install.Version { + if oldInstall.App.Key != install.App.Key || oldInstall.Name != install.Name { return errors.New("the current backup file does not match the application") }