Removed public data backup

This commit is contained in:
YourFriendlyNeighborhoodDealer 2018-12-11 19:44:11 +01:00
parent 0d96738c4d
commit 42c46caf7c

View file

@ -12,7 +12,6 @@ var fs = require('fs');
var logger = require('./logger.js');
const recievedFile = "stats/recieved";
const publicFile = "public/data/public";
const staticFile = "public/data/static";
const manFile = "public/man.html";
const logFile = "stats/logs";
@ -57,11 +56,4 @@ function WriteBackup() {
logger.Log("[ERR ]: Error backing up recieved file!", logger.GetColor("redbg"));
console.log(e);
}
try {
WriteFileAsync(ReadFile(publicFile), 'public/backs/public_' + new Date().toString());
//logger.Log('[SAVE]: Public questions backup wrote');
} catch (e) {
logger.Log("[ERR ]: Error backing up public file!", logger.GetColor("redbg"), true);
console.log(e);
}
}