1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 22:18:07 +08:00

fix: 解决项目启动失败的问题 (#1829)

This commit is contained in:
zhengkunwang 2023-08-03 22:13:59 +08:00 committed by GitHub
parent 43e1ec0244
commit d4e6232664
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))
}
}()