From 9d933000f8b673ac5e5165fc76de112b29f43651 Mon Sep 17 00:00:00 2001 From: RetricSu Date: Mon, 21 Nov 2022 22:28:31 +0800 Subject: [PATCH] chore: rm tip block cache to improve ci speed --- packages/api-server/src/db/query.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/api-server/src/db/query.ts b/packages/api-server/src/db/query.ts index 3d32ef3f..4dabf30f 100644 --- a/packages/api-server/src/db/query.ts +++ b/packages/api-server/src/db/query.ts @@ -88,8 +88,7 @@ export class Query { const blockData = await this.knex("blocks") .select("number") .orderBy("number", "desc") - .first() - .cache(); + .first(); return toBigIntOpt(blockData?.number); } @@ -97,8 +96,7 @@ export class Query { async getTipBlock(): Promise { const block = await this.knex("blocks") .orderBy("number", "desc") - .first() - .cache(); + .first(); if (!block) { return undefined;