mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-01 19:58:15 +08:00
fix: model destroy with individualHooks
This commit is contained in:
parent
a604eed44d
commit
4f4064ad11
@ -347,6 +347,7 @@ export async function destroy(ctx: Context, next: Next) {
|
||||
where: resourceKey ? { [primaryKey]: resourceKey } : where,
|
||||
// @ts-ignore hooks 里添加 context
|
||||
...commonOptions,
|
||||
individualHooks: true,
|
||||
});
|
||||
ctx.body = data;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user