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:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user