Repository navigation
|
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. |
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')) |
Yes but what is
generatePixactually doing? If it setscontext.resultthe actual service call will be skipped.