From 7b809ab48c728ec2ccaffbf4311a1298ba17f4d2 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 25 Jun 2026 20:49:09 -0400 Subject: [PATCH] fix: Avoid SequelizeEmptyResultError when team is missing in CollectionsProcessor (#12837) Drop rejectOnEmpty so a deleted team yields null and the existing optional chaining guard short-circuits the no-op transaction. Co-authored-by: Claude Opus 4.8 --- server/queues/processors/CollectionsProcessor.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/server/queues/processors/CollectionsProcessor.ts b/server/queues/processors/CollectionsProcessor.ts index a8769141b5..869a3a587b 100644 --- a/server/queues/processors/CollectionsProcessor.ts +++ b/server/queues/processors/CollectionsProcessor.ts @@ -21,7 +21,6 @@ export default class CollectionsProcessor extends BaseProcessor { await sequelize.transaction(async (transaction) => { const team = await Team.findByPk(event.teamId, { - rejectOnEmpty: true, transaction, lock: transaction.LOCK.UPDATE, });