From adfa021760895a6ef07951ff2bdc46915458da23 Mon Sep 17 00:00:00 2001 From: Node <8974108+qwenode@users.noreply.github.com> Date: Thu, 9 Nov 2023 21:53:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=A7=A3=E5=86=B3=E5=A4=87=E4=BB=BD?= =?UTF-8?q?=E8=BF=98=E5=8E=9F=E5=88=B0=E6=96=B0=E5=BB=BA=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98=20#2854=20(#2863)?= 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, 2 insertions(+) diff --git a/backend/app/service/backup_app.go b/backend/app/service/backup_app.go index f3b1bdb4a..8947c3776 100644 --- a/backend/app/service/backup_app.go +++ b/backend/app/service/backup_app.go @@ -248,6 +248,8 @@ func handleAppRecover(install *model.AppInstall, recoverFile string, isRollback oldInstall.AppId = install.AppId oldInstall.AppDetailId = install.AppDetailId oldInstall.App.ID = install.AppId + oldInstall.Env = strings.ReplaceAll(oldInstall.Env, oldInstall.ContainerName, install.ContainerName) + oldInstall.ContainerName = install.ContainerName if err := appInstallRepo.Save(context.Background(), &oldInstall); err != nil { global.LOG.Errorf("save db app install failed, err: %v", err) return err