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

View File

@@ -13,8 +13,10 @@ func NewAppStoreJob() *app {
func (a *app) Run() {
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())
}
appService.SyncAppListFromLocal()
global.LOG.Info("AppStore scheduled task has completed")
}