From 940cfc850fc6c1ce98f23b0fa2c4d283fbc64579 Mon Sep 17 00:00:00 2001 From: Randell Dawson Date: Mon, 3 Dec 2018 09:02:08 -0800 Subject: [PATCH] fix: corrected directory path for renaming of file to work --- one-off-scripts/get-pr-relations-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/one-off-scripts/get-pr-relations-data.js b/one-off-scripts/get-pr-relations-data.js index 99cc33a41b..a1250140b7 100644 --- a/one-off-scripts/get-pr-relations-data.js +++ b/one-off-scripts/get-pr-relations-data.js @@ -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);