Skip to content

Commit 764a34d

Browse files
committed
GetAppMetadataListByEnvironment
1 parent 58d7555 commit 764a34d

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
@@ -158,11 +158,11 @@ func (impl *AppListingRepositoryImpl) FetchAppsEnvContainers(envId int, limit, o
158158
query += " ORDER BY a.app_name"
159159

160160
if limit > 0 {
161-
query += " LIMIT ?"
161+
query += fmt.Sprintf("LIMIT ? ")
162162
queryParams = append(queryParams, limit)
163163
}
164164
if offset > 0 {
165-
query += " OFFSET ?"
165+
query += fmt.Sprintf("OFFSET ? ")
166166
queryParams = append(queryParams, offset)
167167
}
168168

0 commit comments

Comments
 (0)