fix: 解决安装 gitea 跳转到 postgres 报错的问题 (#5908)

Refs https://github.com/1Panel-dev/1Panel/issues/5902
This commit is contained in:
zhengkunwang 2024-07-23 10:27:31 +08:00 committed by GitHub
parent 3339ba9bad
commit 9b12930376
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -145,6 +145,9 @@ func (a AppService) GetAppTags() ([]response.TagDTO, error) {
func (a AppService) GetApp(key string) (*response.AppDTO, error) {
var appDTO response.AppDTO
if key == "postgres" {
key = "postgresql"
}
app, err := appRepo.GetFirst(appRepo.WithKey(key))
if err != nil {
return nil, err