From 106256ca64d2cd2404237a30ef020bc02e51621b Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 25 Apr 2020 11:50:34 +0200 Subject: [PATCH] bug fix --- DataDependencies.js | 1 - FileStorage.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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. }