You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a bounty is claimed on the web side, 2 direct messages are sent to the bounty creator on the bot side.
Expected behavior
Only one claimed DM should be sent
Additional context
This is happening because when a bounty is claimed, 2 database updates occur:
On the web side the data elements to claim it are updated
On the bot side the BountyUtils.bountyCleanUp is called which replaces the document with updated iconUrls
The replace update needs to be ignored, probably, but it should be conditional on coming from this routine, otherwise if we do a replace for some other reason on the web side, it won't get caught.
The text was updated successfully, but these errors were encountered:
Describe the bug
When a bounty is claimed on the web side, 2 direct messages are sent to the bounty creator on the bot side.
Expected behavior
Only one claimed DM should be sent
Additional context
This is happening because when a bounty is claimed, 2 database updates occur:
The replace update needs to be ignored, probably, but it should be conditional on coming from this routine, otherwise if we do a replace for some other reason on the web side, it won't get caught.
The text was updated successfully, but these errors were encountered: