fix: changed to sync file save
This commit is contained in:
committed by
mrugesh mohapatra
parent
78a87ad7ce
commit
743d719f8d
@ -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) }
|
||||
});
|
||||
}
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user