From d4e623266453228ce1755a8517893705b7b16ffb Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Thu, 3 Aug 2023 22:13:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#1829)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/app.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/app/service/app.go b/backend/app/service/app.go index 321290011..6803ed5f3 100644 --- a/backend/app/service/app.go +++ b/backend/app/service/app.go @@ -708,13 +708,14 @@ func (a AppService) SyncAppListFromRemote() (err error) { if err = json.Unmarshal(content, list); err != nil { return } - if err = settingRepo().Update("AppStoreLastModified", strconv.Itoa(list.LastModified)); err != nil { + + if err = NewISettingService().Update("AppStoreLastModified", strconv.Itoa(list.LastModified)); err != nil { return err } defer func() { if err != nil { - _ = settingRepo().Update("AppStoreLastModified", strconv.Itoa(updateRes.AppStoreLastModified)) + _ = NewISettingService().Update("AppStoreLastModified", strconv.Itoa(updateRes.AppStoreLastModified)) } }()