Skip to content

Commit

Permalink
fix: updated delete installed app error (#3941)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-exp committed Sep 21, 2023
1 parent 77fe044 commit e0bce0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/appStore/deployment/service/AppStoreDeploymentService.go
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,9 @@ func (impl AppStoreDeploymentServiceImpl) DeleteInstalledApp(ctx context.Context

app, err := impl.appRepository.FindById(installAppVersionRequest.AppId)
if err != nil {
if err == pg.ErrNoRows {
return nil, fmt.Errorf("App not found in database")
}
return nil, err
}
model, err := impl.installedAppRepository.GetInstalledApp(installAppVersionRequest.InstalledAppId)
Expand Down

0 comments on commit e0bce0f

Please sign in to comment.