Skip to content

Commit

Permalink
[bugfix] actually decrement votes during poll vote delete ... (#2344)
Browse files Browse the repository at this point in the history
  • Loading branch information
NyaaaWhatsUpDoc committed Nov 9, 2023
1 parent 34d0879 commit b1c65ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/db/bundb/poll.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ func (p *pollDB) DeletePollVoteBy(ctx context.Context, pollID string, accountID
}

// Decrement votes for choices.
poll.IncrementVotes(choices)
poll.DecrementVotes(choices)

// Finally, update the poll entry.
_, err := tx.NewUpdate().
Expand Down

0 comments on commit b1c65ed

Please sign in to comment.