From 4b472eed801031e84306bf0b57a38f8fa33d6683 Mon Sep 17 00:00:00 2001 From: Andrey Kochkin Date: Fri, 22 Feb 2019 10:57:20 +0300 Subject: [PATCH] Db connection close after update --- lib/rest.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rest.js b/lib/rest.js index 8c881ca..0f4d482 100644 --- a/lib/rest.js +++ b/lib/rest.js @@ -115,6 +115,7 @@ server.put('/:db/:collection/:id', function (req, res) { collection.update(spec, util.cleanParams(req.params), true, function (err, docs) { res.set('content-type', 'application/json; charset=utf-8'); res.json({"ok": 1}); + db.close(); }); }); });