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) async getAreStrikesActive(guildId)
{ {
const flag = await guildsM.find({gID:guildId}).then(g=>{return g.strikes}); const guild = await guildsM.find({gID:guildId}).then(g=>{return g[0]});
if(!flag) return false; return guild.strikes;
return true;
} }
async check() async check()
{ {

Loading…
Cancel
Save