Tutorial: https://backendless.com/documentation/business-logic/js/bl_quick_start_js.htm
I am using JS in Business Logic using Events on Users Table after Register
Business Logic:
afterRegister.js
console.log( "Test");
req.user.email = req.user.email.toUpperCase();
Ran npm run debug
21:52:23.682 - Registering Model on https://api.backendless.com
21:52:24.121 - Model successfully registered
21:52:24.122 - Waiting for Server Code tasks…
I verified that event is registered in Debug tab and is Enabled.
curl -H application-id:"xxxxxxxx" -H secret-key:"yyyyyyyyy" -H Content-Type:application/json -X POST -d "{\"email\":\"P1@p.com\", \"password\":\"password\"}" -v https://api.backendless.com/v1/users/register
But i dont see any info on Server Code command window
Curl is getting run correctly and row is getting inserted to the Users Table as well. I even tried with other Table as well.
Looks like Server is not getting invoked…
What am i doing wrong here…?
Thanks
Sudheer