From 0792d976b1bae990f3b4b385f4b6b81e04ef13ec Mon Sep 17 00:00:00 2001 From: Tan Hoang Date: Tue, 24 Sep 2024 18:47:19 +0700 Subject: [PATCH] fix: crawler --- src/modules/crawler/crawler.minabridge.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/crawler/crawler.minabridge.ts b/src/modules/crawler/crawler.minabridge.ts index d36bfcd..41198cc 100644 --- a/src/modules/crawler/crawler.minabridge.ts +++ b/src/modules/crawler/crawler.minabridge.ts @@ -62,7 +62,7 @@ export class SCBridgeMinaCrawler { } // udpate current latest block await this.updateLatestBlockCrawl(Number(toBlock.toString()), queryRunner); - return queryRunner.commitTransaction(); + await queryRunner.commitTransaction(); } catch (error) { await queryRunner.rollbackTransaction(); throw error;