summaryrefslogtreecommitdiff
path: root/internal/db/bundb/poll.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/bundb/poll.go')
-rw-r--r--internal/db/bundb/poll.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/internal/db/bundb/poll.go b/internal/db/bundb/poll.go
index e8c3e7e54..5da9832f0 100644
--- a/internal/db/bundb/poll.go
+++ b/internal/db/bundb/poll.go
@@ -21,7 +21,6 @@ import (
"context"
"errors"
"slices"
- "time"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtscontext"
@@ -158,17 +157,6 @@ func (p *pollDB) UpdatePoll(ctx context.Context, poll *gtsmodel.Poll, cols ...st
return p.state.Caches.DB.Poll.Store(poll, func() error {
return p.db.RunInTx(ctx, nil, func(ctx context.Context, tx bun.Tx) error {
- // Update the status' "updated_at" field.
- if _, err := tx.NewUpdate().
- Table("statuses").
- Where("? = ?", bun.Ident("id"), poll.StatusID).
- SetColumn("updated_at", "?", time.Now()).
- Exec(ctx); err != nil {
- return err
- }
-
- // Finally, update poll
- // columns in database.
_, err := tx.NewUpdate().
Model(poll).
Column(cols...).