1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-01 03:24:14 +08:00

fix: Resolve the issue of local application label loss (#7926)

This commit is contained in:
zhengkunwang 2025-02-20 13:29:04 +08:00 committed by GitHub
parent a357d6697d
commit 10203d5c0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,8 +13,10 @@ func NewAppStoreJob() *app {
func (a *app) Run() { func (a *app) Run() {
global.LOG.Info("AppStore scheduled task in progress ...") global.LOG.Info("AppStore scheduled task in progress ...")
if err := service.NewIAppService().SyncAppListFromRemote(); err != nil { appService := service.NewIAppService()
if err := appService.SyncAppListFromRemote(); err != nil {
global.LOG.Errorf("AppStore sync failed %s", err.Error()) global.LOG.Errorf("AppStore sync failed %s", err.Error())
} }
appService.SyncAppListFromLocal()
global.LOG.Info("AppStore scheduled task has completed") global.LOG.Info("AppStore scheduled task has completed")
} }