diff --git a/src/database/manager.js b/src/database/manager.js index 49f0b2d..1263272 100755 --- a/src/database/manager.js +++ b/src/database/manager.js @@ -366,7 +366,7 @@ class MediaManager { } const outputKeys = []; for (let i = 0; i < inputKeys.length; i++) { - let field = getField(inputKeys[i]); + const field = getField(inputKeys[i]); if (field) { if (parsedExpression.match(field)) { outputKeys.push(inputKeys[i]); diff --git a/src/database/search.js b/src/database/search.js index 1f67f30..a9aa26a 100755 --- a/src/database/search.js +++ b/src/database/search.js @@ -19,7 +19,7 @@ class Mutex { const $this = this; return new Promise(function(resolve, reject) { if ($this.locked) { - this.clients.push(resolve); + $this.clients.push(resolve); } else { $this.locked = true; resolve();