Skip to content

Commit 23b3372

Browse files
committed
datastore: use package_scanartifact.id for package ID
rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
1 parent 5de5c9b commit 23b3372

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

datastore/postgres/packagesbylayer.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ FROM
4848
WHERE
4949
name = $1 AND version = $2 AND kind = $3;
5050
`
51+
// TODO: It'd be nice to just use package_scanartifact.id, but what to do about the source_package ID?
52+
// Just use the source package ID for now I guess?
5153
query = `
5254
SELECT
53-
package.id,
55+
package_scanartifact.id,
5456
package.name,
5557
package.kind,
5658
package.version,

0 commit comments

Comments
 (0)