Skip to content

Commit

Permalink
fix: delete truth bullets on leave
Browse files Browse the repository at this point in the history
  • Loading branch information
AstreaTSS committed Dec 18, 2024
1 parent 4dc7c68 commit 96ccb36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exts/etc_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ async def on_guild_left(self, event: ipy.events.GuildLeft) -> None:
where={"guild_id": int(event.guild_id)}
)

# doesn't get deleted by cascade
await models.GachaPlayer.prisma().delete_many(
await models.TruthBullet.prisma().delete_many(
where={"guild_id": int(event.guild_id)}
)

Expand Down

0 comments on commit 96ccb36

Please sign in to comment.