From a6dcc8aeadb149b50e0d3be24a24b1cb427c5603 Mon Sep 17 00:00:00 2001 From: Erik Kieckhafer Date: Thu, 27 Feb 2020 11:26:55 -0800 Subject: [PATCH] fix: change query to allow for locked not being set Signed-off-by: Erik Kieckhafer --- src/util/lockTrack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/lockTrack.js b/src/util/lockTrack.js index 3cc420d..da73c6b 100644 --- a/src/util/lockTrack.js +++ b/src/util/lockTrack.js @@ -16,7 +16,7 @@ async function lockTrack({ db, namespace }) { try { await collection.updateOne({ - locked: false, + locked: { $ne: true }, namespace }, { $set: {