Skip to content

Commit

Permalink
Update purge.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mazipan authored Mar 16, 2020
1 parent aac55b0 commit 8cfec51
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions purge.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8cfec51

Please sign in to comment.