fix: hookFunc args

This commit is contained in:
Chareice 2022-02-09 09:50:36 +08:00 committed by chenos
parent 41456b562e
commit 672c44e376

View File

@ -32,8 +32,8 @@ export class ServerHooks {
const hookFunc = this.hooks.get('afterCreateSelf')?.get(listenHookName); const hookFunc = this.hooks.get('afterCreateSelf')?.get(listenHookName);
await hookFunc({ await hookFunc({
model: uiSchemaModel, schemaInstance: uiSchemaModel,
transaction, options,
}); });
} }
} }
@ -56,8 +56,9 @@ export class ServerHooks {
const hookFunc = this.hooks.get('afterDestroyCollection')?.get(listenHookName); const hookFunc = this.hooks.get('afterDestroyCollection')?.get(listenHookName);
await hookFunc({ await hookFunc({
model: listenSchema, collectionInstance: collectionModel,
transaction, schemaInstance: listenSchema,
options,
}); });
} }
} }
@ -81,8 +82,9 @@ export class ServerHooks {
const hookFunc = this.hooks.get('afterDestroyField')?.get(listenHookName); const hookFunc = this.hooks.get('afterDestroyField')?.get(listenHookName);
await hookFunc({ await hookFunc({
model: listenSchema, fieldInstance: fieldModel,
transaction, schemaInstance: listenSchema,
options,
}); });
} }
} }