fix(catalog-backend): fix tsc error — Knex insert returns number[], not number
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -249,7 +249,7 @@ export async function performStitching(options: {
|
||||
.where('hash', hash)
|
||||
.select(knex.raw('1'))
|
||||
.first())
|
||||
: rowsAffected === 0;
|
||||
: rowsAffected[0] === 0;
|
||||
if (blocked) {
|
||||
logger.debug(
|
||||
`Entity ${entityRef} is already stitched, skipping write.`,
|
||||
|
||||
Reference in New Issue
Block a user