i\'ve written code in node.js and my data is on Firebase. The problem i\'m facing is that my code never exits. I\'ve done it like this one Link
The problem is that f
Add this line at the beginning of your handler function and then you should be able to use the callback without issue:
function handler (event, context, callback) { context.callbackWaitsForEmptyEventLoop = false // Add this line }