From b78483f7b0a93cfdbe7c4cedd291311319e12150 Mon Sep 17 00:00:00 2001 From: Esben Petersen Date: Mon, 13 Nov 2017 14:06:25 +0100 Subject: [PATCH] add close to api --- src/api.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api.js b/src/api.js index 400ab24..2589a7c 100644 --- a/src/api.js +++ b/src/api.js @@ -28,6 +28,8 @@ function createApi(createQueue, options = {}) { url: req.body.url, meta: req.body.meta || {} }).then(function (response) { + queue.close() + if (error.isError(response)) { res.status(422).json(response) return