Hi,
hope you are doing well!
I am trying to use afterTransaction event handler, but when I create it, even just empty it returns an error.
So what I am having after creation:
Backendless.ServerCode.Persistence.afterTransaction('*', async function(req, res) {
//add your code here
console.log("AFTER TRANSACTION!!!!");
});
And that is what I get in the log:
20:1:26.607 | SERVER_CODE | ERROR | [3474] TypeError: Cannot read property ‘value’ of undefined at /usr/local/lib/node_modules/backendless-coderunner/lib/util/json.js:191:51 at Array.forEach () at objectRefsReviver (/usr/local/lib/node_modules/backendless-coderunner/lib/util/json.js:190:14) at Object. (/usr/local/lib/node_modules/backendless-coderunner/lib/util/json.js:199:60) at JSON.parse () at Object.exports.parse (/usr/local/lib/node_modules/backendless-coderunner/lib/util/json.js:211:15) at Object.exports.decode (/usr/local/lib/node_modules/backendless-coderunner/lib/server-code/runners/tasks/util/args.js:22:12) at /usr/local/lib/node_modules/backendless-coderunner/lib/server-code/runners/tasks/invoke-handler.js:67:31 at new Promise () at execute (/usr/local/lib/node_modules/backendless-coderunner/lib/server-code/runners/tasks/invoke-handler.js:52:10)
How can I fix it?
Thanks a lot for your help,
best,
Nike.