mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:25:15 +00:00
fix: hookFunc args
This commit is contained in:
parent
41456b562e
commit
672c44e376
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user