fix: changed to sync file save

This commit is contained in:
Randell Dawson
2018-11-12 22:08:12 -08:00
committed by mrugesh mohapatra
parent 78a87ad7ce
commit 743d719f8d
2 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,7 @@
const fs = require('fs');
const saveToFile = (fileName, data) => {
fs.writeFile(fileName, data, err => {
fs.writeFileSync(fileName, data, err => {
if (err) { return console.log(err) }
});
}

View File

@ -10,7 +10,6 @@ class PrProcessingLog {
this._lastPRlogged = null;
this._finish = null;
this._prs = {};
//path.resolve(__dirname, '../../../guide');
this._logfile = path.resolve(__dirname, './work-logs/open-prs-processed.json');
}