From efb59964661b68c7d1242e2a58032b3848f09320 Mon Sep 17 00:00:00 2001 From: "Xc@centOs" Date: Wed, 1 Feb 2023 12:47:05 +0800 Subject: [PATCH] =?UTF-8?q?dbStore=E7=9A=84update=E6=BC=8F=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=85=B3=E9=94=AE=E7=9A=84await?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/DbStore.js | 2 +- src/DbStore.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/DbStore.js b/lib/DbStore.js index e20ab0d..5cc275e 100644 --- a/lib/DbStore.js +++ b/lib/DbStore.js @@ -13,7 +13,7 @@ class DbStore extends oak_db_1.MysqlStore { if (!option.blockTrigger) { await this.executor.preOperation(entity, operation, context, option); } - const result = super.cascadeUpdateAsync(entity, operation, context, option); + const result = await super.cascadeUpdateAsync(entity, operation, context, option); if (!option.blockTrigger) { await this.executor.postOperation(entity, operation, context, option); } diff --git a/src/DbStore.ts b/src/DbStore.ts index 2bf474b..1489bd3 100644 --- a/src/DbStore.ts +++ b/src/DbStore.ts @@ -19,7 +19,7 @@ export class DbStore