update remainder of delete functions to behave in similar way, some other small tweaks

This commit is contained in:
kim 2024-09-13 15:41:20 +01:00
commit 2485442086
23 changed files with 555 additions and 633 deletions

View file

@ -126,11 +126,6 @@ func (u *utils) wipeStatus(
errs.Appendf("error deleting status poll: %w", err)
}
// Delete any poll votes pointing to this poll ID.
if err := u.state.DB.DeletePollVotes(ctx, pollID); err != nil {
errs.Appendf("error deleting status poll votes: %w", err)
}
// Cancel any scheduled expiry task for poll.
_ = u.state.Workers.Scheduler.Cancel(pollID)
}