Fix a bug causing all slaves data gets cleared on master startup (#165)

This commit is contained in:
TechnoStrife authored and Daniel committed 2019-07-15 10:34:02 +02:00
1 parent 0b34f07954
commit 3b814eeea4
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){