From 803f72ce1e3bc6e765996904e77caa8ade3639f0 Mon Sep 17 00:00:00 2001 From: Hadar Rottenberg Date: Mon, 11 Sep 2017 14:08:06 +0300 Subject: [PATCH] fix: bulk cache key --- utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.js b/utils.js index 2c8dcdd9b..230f3c081 100644 --- a/utils.js +++ b/utils.js @@ -106,7 +106,7 @@ var query = urlObj.query; //use slice to generate a copy of array so sort doesnt modify the original var postUrls = [] - if(req.body & req.body.urls) + if(req.body && req.body.urls) { postUrls = req.body.urls.slice(0) if(postUrls)