We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d27e8e commit 472ae6dCopy full SHA for 472ae6d
src/modules/scraper/adapter/messaging/BlockNumberConsumer.ts
@@ -28,7 +28,7 @@ export class BlockNumberConsumer {
28
private async process(job: Job<BlockNumberQueueMessage>) {
29
const { depositId } = job.data;
30
const deposit = await this.depositRepository.findOne({ where: { id: depositId } });
31
- if (!deposit) throw new Error("Deposit not found");
+ if (!deposit) return;
32
const block = await this.providers.getCachedBlock(deposit.sourceChainId, deposit.blockNumber);
33
await this.depositRepository.update({ id: deposit.id }, { depositDate: block.date });
34
await this.scraperQueuesService.publishMessage<TokenDetailsQueueMessage>(ScraperQueue.TokenDetails, {
0 commit comments