-
Hi guys, Im using a hook to do some things through a process however, if i use a before hook, the main process is never called. This is a normal behavior? This is the process im doing, i call the api like https://site.com/form, then i use a before hook like this:
The hook is executed normally, however im not getting back to the usual create api, this is not executed:
I tried to use next() but im getting the message
Im trying keep the database available everywhere. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
What does your hook look like? How are you registering it?
app.set('pb', new PocketBase('https://server.com/'))
app.use('myService', new MyService(app.get('pb')) |
Beta Was this translation helpful? Give feedback.
Yes but what is
generatePix
actually doing? If it setscontext.result
the actual service call will be skipped.