whoops; actually delete poll votes from database in the DeletePollByID() func

This commit is contained in:
kim 2024-09-16 15:31:52 +01:00
commit 921b64f555
2 changed files with 20 additions and 7 deletions

View file

@ -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.