Skip to content

Commit 05a5845

Browse files
committed
fix: filter by packages id
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
1 parent cb57739 commit 05a5845

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • services/libs/data-access-layer/src/packages

services/libs/data-access-layer/src/packages/packages.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,15 +255,15 @@ export async function listNpmPackagesForRepoUrlRecompute(
255255
}> = await qx.select(
256256
`
257257
SELECT
258-
id::text AS id,
258+
packages.id::text AS id,
259259
declared_repository_url,
260260
repository_url
261261
FROM packages
262262
WHERE ecosystem = 'npm'
263263
${options.criticalOnly ? 'AND is_critical' : ''}
264264
AND id > $(afterId)::bigint
265265
AND declared_repository_url IS NOT NULL
266-
ORDER BY id ASC
266+
ORDER BY packages.id ASC
267267
LIMIT $(limit)
268268
`,
269269
{ afterId: options.afterId, limit: options.limit },

0 commit comments

Comments
 (0)