Skip to content

Commit c472b6e

Browse files
committed
wip
1 parent c6f8cca commit c472b6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/sql/repository/AppListingRepository.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ func (impl AppListingRepositoryImpl) FetchOverviewAppsByEnvironment(envId, limit
161161
ORDER BY a.app_name `
162162
queryParams := []interface{}{envId, envId}
163163
if limit > 0 {
164-
query += fmt.Sprintf("LIMIT %v", limit)
164+
query += fmt.Sprintf("LIMIT ?")
165165
queryParams = append(queryParams, limit)
166166
}
167167
if offset > 0 {
168-
query += fmt.Sprintf("OFFSET %v", offset)
168+
query += fmt.Sprintf("OFFSET ?")
169169
queryParams = append(queryParams, offset)
170170
}
171171
var envContainers []*AppView.AppEnvironmentContainer

0 commit comments

Comments
 (0)