From a03a35a5d6c86ef85d66bae501daaa1cd8c47c2e Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Thu, 20 Feb 2025 10:13:07 +0000 Subject: [bugfix] update fedi api to support multiple separate votes in same multiple choice poll (#3809) --- internal/db/poll.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/db/poll.go') 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 -- cgit v1.2.3