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

fix: 解决未安装应用的显示问题

This commit is contained in:
zhengkunwang223 2022-11-23 15:37:26 +08:00 committed by zhengkunwang223
parent 4596c496ee
commit 93123bbaa7

View File

@ -46,12 +46,12 @@ func (a AppInstallService) CheckExist(key string) (*dto.CheckInstalled, error) {
if err != nil {
return res, nil
}
res.App = app.Name
appInstall, _ := appInstallRepo.GetFirst(appInstallRepo.WithAppId(app.ID))
if reflect.DeepEqual(appInstall, model.AppInstall{}) {
return res, nil
}
res.Name = appInstall.Name
res.App = app.Name
res.Version = appInstall.Version
res.CreatedAt = appInstall.CreatedAt
res.Status = appInstall.Status