From 9f43012af8107221f3f929531332b69ec8b469e4 Mon Sep 17 00:00:00 2001 From: Max Fortun Date: Tue, 14 Sep 2021 08:53:04 -0400 Subject: [PATCH] When done pass the callback() instead of next(). next() triggers recursion. --- lib/backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/backend.js b/lib/backend.js index 6621e225..117b9c05 100644 --- a/lib/backend.js +++ b/lib/backend.js @@ -197,7 +197,7 @@ Backend.prototype.trigger = function(action, agent, request, callback) { if (err) return callback(err); var fn = fns.shift(); if (!fn) return callback(); - fn(request, next); + fn(request, callback); }; next(); };