Refactor time variable and exclude system users #1
1 changed files with 1 additions and 1 deletions
2
main.js
2
main.js
|
@ -63,7 +63,7 @@ async function main() {
|
|||
!excludedUsers.includes(user.username)
|
||||
});
|
||||
|
||||
console.log(`Found ${usersToDelete.length} users matching criteria (no posts, not updated, and older than 5 days)`);
|
||||
console.log(`Found ${usersToDelete.length} users matching criteria (no posts, not updated, and older than ${PERIOD} days)`);
|
||||
|
||||
console.log('\nUsers to be deleted:');
|
||||
usersToDelete.forEach(user => {
|
||||
|
|
Loading…
Reference in a new issue