diff --git a/DataDependencies.js b/DataDependencies.js index 731495e8d..918def0bf 100644 --- a/DataDependencies.js +++ b/DataDependencies.js @@ -112,7 +112,6 @@ thisObject.dataSetsModulesArray = undefined filter = undefined bot = undefined - thisObject = undefined } function isItADepenency(timeFrame, product) { diff --git a/FileStorage.js b/FileStorage.js index 199183aa3..30b69242e 100644 --- a/FileStorage.js +++ b/FileStorage.js @@ -463,7 +463,7 @@ exports.newFileStorage = function newFileStorage(logger, host, port) { function onEnd() { let fileContent = Buffer.concat(chunks).toString('utf8') let err = null - if (fileContent === 'The specified key does not exist.') { + if (fileContent.indexOf('does not exist') >= 0) { err = { code: "ENOENT" // This is how fs would have returned upon this situation. }