var eventCallback = function (event) {
checkActivityDB(client, event);
};
client.events.on("call.saveAndClose", eventCallback, { intercept: true });
in that event, on api call succes i am using i am using event.helper.done();
when i am using event.helper.done(), i am getting warning at that line Expected rejection to be handled. can you guys help me, how to fix this warning
I took a look to the code event.helper.done(), it returns nothing and expects no callback functions as parameters, so I guess that there’s nothing wrong with this code. Perhaps the folks from Fresh could say more about this. To give some context, why do you need to fix this warning? Is it leading to some problem?