From b1c65ed9ac989d3223c145a5da52b460b6a42844 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Thu, 9 Nov 2023 08:08:46 +0000 Subject: [PATCH] [bugfix] actually decrement votes during poll vote delete ... (#2344) --- internal/db/bundb/poll.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/db/bundb/poll.go b/internal/db/bundb/poll.go index 84f160987..ab6edb4b9 100644 --- a/internal/db/bundb/poll.go +++ b/internal/db/bundb/poll.go @@ -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().