mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-11-10 03:30:53 +08:00
fix: 解决未安装应用的显示问题
This commit is contained in:
parent
4596c496ee
commit
93123bbaa7
1 changed files with 1 additions and 1 deletions
|
|
@ -46,12 +46,12 @@ func (a AppInstallService) CheckExist(key string) (*dto.CheckInstalled, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
res.App = app.Name
|
||||||
appInstall, _ := appInstallRepo.GetFirst(appInstallRepo.WithAppId(app.ID))
|
appInstall, _ := appInstallRepo.GetFirst(appInstallRepo.WithAppId(app.ID))
|
||||||
if reflect.DeepEqual(appInstall, model.AppInstall{}) {
|
if reflect.DeepEqual(appInstall, model.AppInstall{}) {
|
||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
res.Name = appInstall.Name
|
res.Name = appInstall.Name
|
||||||
res.App = app.Name
|
|
||||||
res.Version = appInstall.Version
|
res.Version = appInstall.Version
|
||||||
res.CreatedAt = appInstall.CreatedAt
|
res.CreatedAt = appInstall.CreatedAt
|
||||||
res.Status = appInstall.Status
|
res.Status = appInstall.Status
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue