mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-05 12:43:15 -06:00
use the poll_id column in poll_votes for selecting votes in poll ID
This commit is contained in:
parent
3814784991
commit
0978b01164
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ func (p *pollDB) DeletePollByID(ctx context.Context, id string) error {
|
|||
// Delete the poll votes.
|
||||
_, err := tx.NewDelete().
|
||||
Table("poll_votes").
|
||||
Where("? = ?", bun.Ident("id"), id).
|
||||
Where("? = ?", bun.Ident("poll_id"), id).
|
||||
Exec(ctx)
|
||||
return err
|
||||
}); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue