From 3d463a14aa6cc33f91f0ea16ace9d0350bc8052a Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Mon, 14 May 2018 08:06:49 -0700 Subject: [PATCH] Ignore Object property names Fixes #96 --- server/middleware/utils/createMutex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/middleware/utils/createMutex.js b/server/middleware/utils/createMutex.js index 9be3687..a83dd23 100644 --- a/server/middleware/utils/createMutex.js +++ b/server/middleware/utils/createMutex.js @@ -1,5 +1,5 @@ function createMutex(doWork) { - const mutex = {}; + const mutex = Object.create(null); return (key, payload, callback) => { if (mutex[key]) {