dbStore的update漏了一个关键的await
This commit is contained in:
parent
23be1e43f8
commit
efb5996466
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue