Skip to content

Commit 7345e60

Browse files
authored
fix for multiple param of filter in helm app list (#6013)
1 parent 8de2c68 commit 7345e60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/appStore/installedApp/repository/InstalledAppRepository.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,15 +439,15 @@ func (impl *InstalledAppRepositoryImpl) GetAllInstalledApps(filter *appStoreBean
439439
}
440440
if len(filter.ChartRepoId) > 0 {
441441
query = query + " AND ch.id IN (?) "
442-
queryParams = append(queryParams, sqlIntSeq(filter.ChartRepoId))
442+
queryParams = append(queryParams, pg.In(filter.ChartRepoId))
443443
}
444444
if len(filter.EnvIds) > 0 {
445445
query = query + " AND env.id IN (?) "
446-
queryParams = append(queryParams, sqlIntSeq(filter.EnvIds))
446+
queryParams = append(queryParams, pg.In(filter.EnvIds))
447447
}
448448
if len(filter.ClusterIds) > 0 {
449449
query = query + " AND cluster.id IN (?) "
450-
queryParams = append(queryParams, sqlIntSeq(filter.ClusterIds))
450+
queryParams = append(queryParams, pg.In(filter.ClusterIds))
451451
}
452452
if len(filter.AppStatuses) > 0 {
453453
appStatuses := pg.In(filter.AppStatuses)

0 commit comments

Comments
 (0)