[bugfix] actually decrement votes during poll vote delete ... (#2344)

This commit is contained in:
kim 2023-11-09 08:08:46 +00:00 committed by GitHub
parent 34d0879c16
commit b1c65ed9ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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().