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:58:27 +02:00
committed by GitHub
parent c54ea11bcd
commit 80965dcc58
@@ -569,7 +569,7 @@ export class DefaultProcessingDatabase implements ProcessingDatabase {
.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`);
throw new NotFoundError(`Failed to schedule ${entityRef} for refresh`);
}
}