From 672c44e37642a0185d4fe32a280189e703186c3e Mon Sep 17 00:00:00 2001 From: Chareice Date: Wed, 9 Feb 2022 09:50:36 +0800 Subject: [PATCH] fix: hookFunc args --- .../src/server-hooks/index.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/plugin-ui-schema-storage/src/server-hooks/index.ts b/packages/plugin-ui-schema-storage/src/server-hooks/index.ts index 347f066d2..3b8b8cde6 100644 --- a/packages/plugin-ui-schema-storage/src/server-hooks/index.ts +++ b/packages/plugin-ui-schema-storage/src/server-hooks/index.ts @@ -32,8 +32,8 @@ export class ServerHooks { const hookFunc = this.hooks.get('afterCreateSelf')?.get(listenHookName); await hookFunc({ - model: uiSchemaModel, - transaction, + schemaInstance: uiSchemaModel, + options, }); } } @@ -56,8 +56,9 @@ export class ServerHooks { const hookFunc = this.hooks.get('afterDestroyCollection')?.get(listenHookName); await hookFunc({ - model: listenSchema, - transaction, + collectionInstance: collectionModel, + schemaInstance: listenSchema, + options, }); } } @@ -81,8 +82,9 @@ export class ServerHooks { const hookFunc = this.hooks.get('afterDestroyField')?.get(listenHookName); await hookFunc({ - model: listenSchema, - transaction, + fieldInstance: fieldModel, + schemaInstance: listenSchema, + options, }); } }