From 3c6c57e30bd69c5e833dd2d597992182bf245ba7 Mon Sep 17 00:00:00 2001 From: amateima <89395931+amateima@users.noreply.github.com> Date: Wed, 21 Feb 2024 15:23:32 +0200 Subject: [PATCH] fix: trigger build (#344) Co-authored-by: amateima --- src/modules/scraper/adapter/messaging/SpeedUpEventsV3Consumer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/scraper/adapter/messaging/SpeedUpEventsV3Consumer.ts b/src/modules/scraper/adapter/messaging/SpeedUpEventsV3Consumer.ts index 4d269edb..a4e14b14 100644 --- a/src/modules/scraper/adapter/messaging/SpeedUpEventsV3Consumer.ts +++ b/src/modules/scraper/adapter/messaging/SpeedUpEventsV3Consumer.ts @@ -23,6 +23,7 @@ export class SpeedUpEventsV3Consumer { const deposit = await this.depositRepository.findOne({ where: { sourceChainId: depositSourceChainId, depositId } }); if (!deposit) throw new Error("Deposit not found"); + if (this.isSpeedUpAlreadyProcessed(deposit, job.data)) return; await this.processSpeedUpEventQueueMessage(deposit, job.data);