Skip to content

Commit

Permalink
fix(bounty): Resetting total gained bounty on bounty reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickelza committed Nov 2, 2023
1 parent 8f3ead0 commit 9487af4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/service/bounty_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ async def reset_bounty(context: ContextTypes.DEFAULT_TYPE) -> None:
# Reset bounty gift tax
User.update(bounty_gift_tax=0).execute()

# Reset total gained bounty
User.update(total_gained_bounty=0).execute()

# Delete tax events
IncomeTaxEvent.delete().execute()

Expand Down

0 comments on commit 9487af4

Please sign in to comment.