diff --git a/internal/db/bundb/webpush.go b/internal/db/bundb/webpush.go index 6ece9d943..1472e7d7b 100644 --- a/internal/db/bundb/webpush.go +++ b/internal/db/bundb/webpush.go @@ -105,11 +105,6 @@ func (w *webPushDB) PutWebPushSubscription(ctx context.Context, subscription *gt } func (w *webPushDB) UpdateWebPushSubscription(ctx context.Context, subscription *gtsmodel.WebPushSubscription, columns ...string) error { - // If we're updating by column, ensure "updated_at" is included. - if len(columns) > 0 { - columns = append(columns, "updated_at") - } - // Update database. result, err := w.db. NewUpdate(). diff --git a/internal/gtsmodel/webpushsubscription.go b/internal/gtsmodel/webpushsubscription.go index 404623844..7f2a4a0cd 100644 --- a/internal/gtsmodel/webpushsubscription.go +++ b/internal/gtsmodel/webpushsubscription.go @@ -17,22 +17,12 @@ package gtsmodel -import ( - "time" -) - // WebPushSubscription represents an access token's Web Push subscription. // There can be at most one per access token. type WebPushSubscription struct { // ID of this subscription in the database. ID string `bun:"type:CHAR(26),pk,nullzero,notnull,unique"` - // CreatedAt is the time this subscription was created. - CreatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"` - - // UpdatedAt is the time this subscription was last updated. - UpdatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"` - // AccountID of the local account that created this subscription. AccountID string `bun:"type:CHAR(26),notnull,nullzero"`