userinfo: fix boosting badge math

This commit is contained in:
Cynthia Foxwell 2024-08-13 23:33:35 -06:00
parent 111107eff2
commit 7d413d38ff

View file

@ -123,7 +123,7 @@ userinfo.callback = async function (msg, line) {
}
if (boosting) {
let icon = Icons.badges.guild_booster_lvl1;
const delta = Date.now() - Math.floor(boosting / 1000);
const delta = Math.floor((Date.now() - boosting) / 1000);
if (delta >= ONE_MONTH * 2) {
icon = Icons.badges.guild_booster_lvl2;
}