Update plugins/catalog-backend/src/next/database/DefaultProcessingDatabase.ts

Signed-off-by: Johan Haals <johan.haals@gmail.com>

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Johan Haals
2021-09-16 11:56:56 +02:00
committed by GitHub
parent 70a58c7328
commit de3db12c21
@@ -566,7 +566,7 @@ export class DefaultProcessingDatabase implements ProcessingDatabase {
const { entityRef } = options;
const updateResult = await tx<DbRefreshStateRow>('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`);