summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2023-11-09 08:08:46 +0000
committerLibravatar GitHub <noreply@github.com>2023-11-09 09:08:46 +0100
commitb1c65ed9ac989d3223c145a5da52b460b6a42844 (patch)
tree19660ec3bfa00c40d1e3d393bed3f4dd0360cc33 /internal
parent[bugfix] fix poll vote count responses on client and fedi API vote creation (... (diff)
downloadgotosocial-b1c65ed9ac989d3223c145a5da52b460b6a42844.tar.xz
[bugfix] actually decrement votes during poll vote delete ... (#2344)
Diffstat (limited to 'internal')
-rw-r--r--internal/db/bundb/poll.go2
1 files changed, 1 insertions, 1 deletions
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().