diff --git a/server/cleanupAccounts.js b/server/cleanupAccounts.js index 015479fd..5e7c14ee 100644 --- a/server/cleanupAccounts.js +++ b/server/cleanupAccounts.js @@ -37,7 +37,7 @@ async function warnInactive(db) { if (!execute) { continue; } try { - let userRefreshed = await db.get(`SELECT u.id, u.username, u.email, u.bannedReason FROM users u WHERE u.id = '${user.id}'`); + let userRefreshed = await db.get(`SELECT u.id, u.username, u.email, u.bannedReason, u.inactiveWarning FROM users u WHERE u.id = '${user.id}'`); if (userRefreshed.inactiveWarning !== null) { continue; } if (userRefreshed.email.endsWith('.oauth')) {