AreStrikesActive correctly grabs the guild to check

master
masterhc 1 year ago
parent d8394ede75
commit 440da470ff

@ -1264,9 +1264,8 @@ class Strikes
}
async getAreStrikesActive(guildId)
{
const flag = await guildsM.find({gID:guildId}).then(g=>{return g.strikes});
if(!flag) return false;
return true;
const guild = await guildsM.find({gID:guildId}).then(g=>{return g[0]});
return guild.strikes;
}
async check()
{

Loading…
Cancel
Save