From dca5f2e31a052b01245a9214a4ed782675bb98a6 Mon Sep 17 00:00:00 2001 From: PawzyTheJawzy Date: Thu, 9 Jan 2025 02:11:27 +0100 Subject: [PATCH] Update main.js --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 341f8a4..9de62c6 100644 --- a/main.js +++ b/main.js @@ -51,15 +51,15 @@ async function main() { const users = response.data; const now = new Date(); - const TimeAgo = new Date(now - PERIOD * 24 * 60 * 60 * 1000); + const timeAgo = new Date(now - PERIOD * 24 * 60 * 60 * 1000); const usersToDelete = users.filter(user => { const createdAt = new Date(user.createdAt); const updatedAt = new Date(user.updatedAt); const excludedUsers = ['instance.actor', 'relay.actor']; return user.notesCount === 0 && - createdAt < fiveDaysAgo && - updatedAt < fiveDaysAgo && + createdAt < timeAgo && + updatedAt < timeAgo && !excludedUsers.includes(user.username) });