From de3db12c21f7b91df8ff9359270163668555a179 Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Thu, 16 Sep 2021 11:56:56 +0200 Subject: [PATCH] Update plugins/catalog-backend/src/next/database/DefaultProcessingDatabase.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johan Haals Co-authored-by: Fredrik Adelöw --- .../src/next/database/DefaultProcessingDatabase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/catalog-backend/src/next/database/DefaultProcessingDatabase.ts b/plugins/catalog-backend/src/next/database/DefaultProcessingDatabase.ts index 472c79e516..c57b5977a7 100644 --- a/plugins/catalog-backend/src/next/database/DefaultProcessingDatabase.ts +++ b/plugins/catalog-backend/src/next/database/DefaultProcessingDatabase.ts @@ -566,7 +566,7 @@ export class DefaultProcessingDatabase implements ProcessingDatabase { const { entityRef } = options; const updateResult = await tx('refresh_state') - .where({ entity_ref: entityRef }) + .where({ entity_ref: entityRef.toLocaleLowerCase('en-US') }) .update({ next_update_at: tx.fn.now() }); if (updateResult === 0) { throw new ConflictError(`Failed to schedule ${entityRef} for refresh`);