GUUUUH
Some checks failed
ptero-push / build (push) Has been cancelled

This commit is contained in:
Christopher Cookman 2025-05-08 00:59:42 -06:00
parent ba86017d4f
commit 10359afda9

View file

@ -523,11 +523,11 @@ const handleDiscord = function (data) {
} }
] ]
}) })
db.run(`DELETE FROM userAlerts WHERE userid = ? AND iemchannel = ?`, [user.id, fromChannel], (err) => { db.run(`DELETE FROM userAlerts WHERE userid = ?`, [row.userid], (err) => {
if (err) { if (err) {
console.error(err.message); console.error(err.message);
} }
console.log(`${colors.cyan("[INFO]")} Deleted user ${user.id} from database`); console.log(`${colors.cyan("[INFO]")} Deleted all subs for user ${user.id} from database`);
}); });
}) })
}); });