You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no other issue that already describes my problem.
Describe the Bug
I just tried to refactor the hooks and noticed that collections.delete no longer works. It seems from the source code that only fields.delete is invoked via emitter.emitFilter.
To Reproduce
const registerHook: HookConfig = (
{ filter, action },
) => {
filter("collections.delete", async function (data: any) {
// this doesn't get fired when a collection is being deleted
});
filter("fields.delete", async function (data: any) {
// this DOES get fired when a field is being deleted
});
};
export default registerHook;
Errors Shown
NA
What version of Directus are you using?
9.0.0
What version of Node.js are you using?
16.13.0
What database are you using?
MySQL
What browser are you using?
Chrome
What operating system are you using?
Ubuntu
How are you deploying Directus?
Docker
The text was updated successfully, but these errors were encountered:
Preflight Checklist
Describe the Bug
I just tried to refactor the hooks and noticed that
collections.delete
no longer works. It seems from the source code that onlyfields.delete
is invoked viaemitter.emitFilter
.To Reproduce
Errors Shown
NA
What version of Directus are you using?
9.0.0
What version of Node.js are you using?
16.13.0
What database are you using?
MySQL
What browser are you using?
Chrome
What operating system are you using?
Ubuntu
How are you deploying Directus?
Docker
The text was updated successfully, but these errors were encountered: