Closed fpoirier1 closed 9 years ago
Have you tried restructuring a bit by having your notification created in a server-defined Messages.after.insert hook? It's safer in general
@matb33 such a great advice. I'm also dance around tried to call method from client/server hook. wrap hook itself to server only code made my day.
Hello,
I have this hook on the client side :
and this method on the server side :
The method seems to be never called. I need to have my method on the server only because there are some checks that can't be done on the client for some reasons (publications). And I need to have my hook on the client because there are some context data that needs to be send to the server.
What should I do ?