dbStore的update漏了一个关键的await

This commit is contained in:
Xu Chang 2023-02-01 12:47:05 +08:00
parent 23be1e43f8
commit efb5996466
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -19,7 +19,7 @@ export class DbStore<ED extends EntityDict & BaseEntityDict, Cxt extends AsyncCo
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);
}