hi ! I want to use the all hooks "before, after and error".
But I read the documentation and only mentions "before and after".
When I declare the hook for "error", it's breaks and shows a message of "registeredService [hooksType]".
I'm using "feathers-knex": "^5.0.5",
This is the mensaje of error:
registeredService[hooksType] is not a function TypeError: registeredService[hooksType] is not a function
at Object.register (/app/node_modules/moleculer-adapter-feathers/src/services.js:32:35)
at Service.created (/app/node_modules/moleculer-adapter-feathers/src/index.js:94:30)
at schema.created.forEach.fn (/app/node_modules/moleculer/src/service.js:174:41)
at Array.forEach (<anonymous>)
at Service._init (/app/node_modules/moleculer/src/service.js:174:24)
at Service.parseServiceSchema (/app/node_modules/moleculer/src/service.js:148:8)
at new Service (/app/node_modules/moleculer/src/service.js:57:9)
at ServiceBroker.createService (/app/node_modules/moleculer/src/service-broker.js:636:14)
at ServiceBroker.loadService (/app/node_modules/moleculer/src/service-broker.js:563:15)
at _.uniq.forEach.f (/app/node_modules/moleculer/bin/moleculer-runner.js:352:44)
at Array.forEach (<anonymous>)
at loadServices (/app/node_modules/moleculer/bin/moleculer-runner.js:352:24)
at startBroker (/app/node_modules/moleculer/bin/moleculer-runner.js:422:2)
at tryCatcher (/app/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/app/node_modules/bluebird/js/release/promise.
hi ! I want to use the all hooks "before, after and error". But I read the documentation and only mentions "before and after". When I declare the hook for "error", it's breaks and shows a message of "registeredService [hooksType]".
I'm using "feathers-knex": "^5.0.5",
This is the mensaje of error:
I would appreciate help.
hooks.js
service.js