Skip to content

Commit

Permalink
fix for multiple param of filter in helm app list (#6013)
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-579 authored Oct 22, 2024
1 parent 8de2c68 commit 7345e60
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -439,15 +439,15 @@ func (impl *InstalledAppRepositoryImpl) GetAllInstalledApps(filter *appStoreBean
}
if len(filter.ChartRepoId) > 0 {
query = query + " AND ch.id IN (?) "
queryParams = append(queryParams, sqlIntSeq(filter.ChartRepoId))
queryParams = append(queryParams, pg.In(filter.ChartRepoId))
}
if len(filter.EnvIds) > 0 {
query = query + " AND env.id IN (?) "
queryParams = append(queryParams, sqlIntSeq(filter.EnvIds))
queryParams = append(queryParams, pg.In(filter.EnvIds))
}
if len(filter.ClusterIds) > 0 {
query = query + " AND cluster.id IN (?) "
queryParams = append(queryParams, sqlIntSeq(filter.ClusterIds))
queryParams = append(queryParams, pg.In(filter.ClusterIds))
}
if len(filter.AppStatuses) > 0 {
appStatuses := pg.In(filter.AppStatuses)
Expand Down

0 comments on commit 7345e60

Please sign in to comment.