Skip to content

Commit

Permalink
fixed cleanup conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
GhomKrosmonaute committed Oct 27, 2023
1 parent 3f42342 commit 0027abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/listeners/clean.ready.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const listener: app.Listener<"ready"> = {
}
}

await deleteUsers.del()
if (!first) await deleteUsers.del()

first = true

Expand All @@ -59,7 +59,7 @@ const listener: app.Listener<"ready"> = {
}
}

await deleteGuilds.del()
if (!first) await deleteGuilds.del()

const messageCountAfter = await _message.count()
const userCountAfter = await _user.count()
Expand Down

0 comments on commit 0027abe

Please sign in to comment.