Skip to content

Commit

Permalink
removed forcing on first run for active command
Browse files Browse the repository at this point in the history
  • Loading branch information
GhomKrosmonaute authored Oct 10, 2023
1 parent b5e5fee commit 4957909
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/commands/active.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ export default new app.Command({
else inactiveMembers.push(member)
}

const cacheSize = async () =>
(await active.query.where("guild_id", config._id)).length

if (message.args.force || (await cacheSize()) === 0) {
if (message.args.force) {
await active.query.delete().where("guild_id", config._id)

if(activeMembers.length)
Expand Down

0 comments on commit 4957909

Please sign in to comment.