Fix a bug causing all slaves data gets cleared on master startup

Cherry-picked from fix-slaves-data-cleanup-on-startup
This commit is contained in:
TechnoStrife committed 2019-07-15 11:39:11 +03:00
1 parent 98c6795f8f
commit 4a0956d174
1 file changed
+1 -1
+1 -1
View File
@@ -235,7 +235,7 @@ const db = {};
(function(){
try{
let x = fs.statSync(path.resolve(config.databaseDirectory, "/slaves.json"));
let x = fs.statSync(path.resolve(config.databaseDirectory, "slaves.json"));
console.log(`loading slaves from path.resolve(config.databaseDirectory, "slaves.json")`);
slaves = JSON.parse(fs.readFileSync(path.resolve(config.databaseDirectory, "slaves.json")));
} catch (e){