From 3345db10b29a9f615dc1d596444af79f752a4983 Mon Sep 17 00:00:00 2001 From: Robert Choi Date: Wed, 2 Aug 2023 11:20:34 +0900 Subject: [PATCH] bugfix: assign transformed extraEnv to existing var --- internal/usecase/app-serve-app.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/usecase/app-serve-app.go b/internal/usecase/app-serve-app.go index 501b4580..63eaee7b 100644 --- a/internal/usecase/app-serve-app.go +++ b/internal/usecase/app-serve-app.go @@ -110,7 +110,7 @@ func (u *AppServeAppUsecase) CreateAppServeApp(app *domain.AppServeApp) (string, } mJson, _ := json.Marshal(newExtEnv) - extEnv := string(mJson) + extEnv = string(mJson) log.Debug("After transform, extraEnv: ", extEnv) } @@ -401,7 +401,6 @@ func (u *AppServeAppUsecase) UpdateAppServeApp(app *domain.AppServeApp, appTask mJson, _ := json.Marshal(newExtEnv) extEnv = string(mJson) - log.Debug("After transform, extraEnv: ", extEnv) }