Skip to content

Duplicate DMs sent on claim from web #273

@tescher

Description

@tescher

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions