mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
fix: 解决未安装应用的显示问题
This commit is contained in:
parent
4596c496ee
commit
93123bbaa7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user