From 8cfec514e32cc19e48cdafd8225530196afae836 Mon Sep 17 00:00:00 2001 From: Irfan Maulana Date: Mon, 16 Mar 2020 11:21:59 +0700 Subject: [PATCH] Update purge.js --- purge.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/purge.js b/purge.js index 749c5b209..4f0c804ab 100644 --- a/purge.js +++ b/purge.js @@ -16,6 +16,14 @@ if (!namesToRemove.length) { } } }); + + fs.writeFile(`${peoplesPath}/LAST_UPDATE`, `${new Date().toISOString()}`, function (err) { + if (err) { + console.error(err); + } else { + console.log('File "LAST_UPDATE" is updated successfully.'); + } + }); } else { namesToRemove.forEach(name => { try {