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);
|
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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user