summaryrefslogtreecommitdiff
path: root/internal/db/poll.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2025-02-20 10:13:07 +0000
committerLibravatar GitHub <noreply@github.com>2025-02-20 11:13:07 +0100
commita03a35a5d6c86ef85d66bae501daaa1cd8c47c2e (patch)
tree78d745437a15d4db3ea37965fa6a40f5156eb482 /internal/db/poll.go
parent[chore] Step minio down to 7.0.85 (#3808) (diff)
downloadgotosocial-a03a35a5d6c86ef85d66bae501daaa1cd8c47c2e.tar.xz
[bugfix] update fedi api to support multiple separate votes in same multiple choice poll (#3809)
Diffstat (limited to 'internal/db/poll.go')
-rw-r--r--internal/db/poll.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/db/poll.go b/internal/db/poll.go
index 88de6bfcd..2b92bd4d7 100644
--- a/internal/db/poll.go
+++ b/internal/db/poll.go
@@ -58,6 +58,9 @@ type Poll interface {
// PutPollVote puts the given PollVote in the database.
PutPollVote(ctx context.Context, vote *gtsmodel.PollVote) error
+ // UpdatePollVote updates the given poll vote in the database, using only given columns (else, all).
+ UpdatePollVote(ctx context.Context, vote *gtsmodel.PollVote, cols ...string) error
+
// DeletePollVoteBy deletes the PollVote in Poll with ID, by account ID, from the database.
DeletePollVoteBy(ctx context.Context, pollID string, accountID string) error