mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-06 03:13:15 -06:00
whoops; actually delete poll votes from database in the DeletePollByID() func
This commit is contained in:
parent
90bf3a1bbd
commit
921b64f555
2 changed files with 20 additions and 7 deletions
|
|
@ -39,7 +39,8 @@ type Poll interface {
|
|||
// UpdatePoll updates the Poll in the database, only on selected columns if provided (else, all).
|
||||
UpdatePoll(ctx context.Context, poll *gtsmodel.Poll, cols ...string) error
|
||||
|
||||
// DeletePollByID deletes the Poll with given ID from the database.
|
||||
// DeletePollByID deletes the Poll with given ID from the
|
||||
// database, along with all its associated poll votes.
|
||||
DeletePollByID(ctx context.Context, id string) error
|
||||
|
||||
// GetPollVoteByID gets the PollVote with given ID from the database.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue