Open AshotN opened 2 months ago
Discord discussion
https://codesandbox.io/p/devbox/feathers-custom-service-hooks-8m28r3?file=%2Fsrc%2Fapp.ts%3A27%2C22
export const customMethods = ['enabledMethod'] as const ... //BEFORE ALL is called with this app.service('custom').enabledMethod() //But not this app.service('custom').notEnabledMethod()
Ideally hooks should run on all methods
Hooks are only ran on enabled methods
Steps to reproduce
Discord discussion
https://codesandbox.io/p/devbox/feathers-custom-service-hooks-8m28r3?file=%2Fsrc%2Fapp.ts%3A27%2C22
export const customMethods = ['enabledMethod'] as const ... //BEFORE ALL is called with this app.service('custom').enabledMethod() //But not this app.service('custom').notEnabledMethod()
Expected behavior
Ideally hooks should run on all methods
Actual behavior
Hooks are only ran on enabled methods