From 8d38538a8213051b0487e47ab1ec48ca7d92e529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Thu, 21 May 2026 18:02:09 +0200 Subject: [PATCH] =?UTF-8?q?fix(catalog-backend):=20fix=20tsc=20error=20?= =?UTF-8?q?=E2=80=94=20Knex=20insert=20returns=20number[],=20not=20number?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Fredrik Adelöw --- .../src/database/operations/stitcher/performStitching.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/catalog-backend/src/database/operations/stitcher/performStitching.ts b/plugins/catalog-backend/src/database/operations/stitcher/performStitching.ts index bbfe46a417..93ad4364da 100644 --- a/plugins/catalog-backend/src/database/operations/stitcher/performStitching.ts +++ b/plugins/catalog-backend/src/database/operations/stitcher/performStitching.ts @@ -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.`,