fix: corrected directory path for renaming of file to work

This commit is contained in:
Randell Dawson
2018-12-03 09:02:08 -08:00
committed by mrugesh mohapatra
parent 8d826dbddc
commit 940cfc850f

View File

@ -54,7 +54,7 @@ class Log {
changeFilename( [first, last] ) {
const now = formatDate(new Date(), 'YYYY-MM-DDTHHmmss');
const newFilename = path.resolve(__dirname,`./work-logs/pr-relations_${first}-${last}_${now}.json`);
const newFilename = path.resolve(__dirname,`../work-logs/pr-relations_${first}-${last}_${now}.json`);
fs.rename(this._logfile, newFilename, function(err) {
if (err) {
throw('ERROR: ' + err);