diff options
Diffstat (limited to 'internal/processing/media/unattach.go')
-rw-r--r-- | internal/processing/media/unattach.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/processing/media/unattach.go b/internal/processing/media/unattach.go index 5ef8f81f4..d0f34eba1 100644 --- a/internal/processing/media/unattach.go +++ b/internal/processing/media/unattach.go @@ -47,7 +47,7 @@ func (p *processor) Unattach(ctx context.Context, account *gtsmodel.Account, med attachment.UpdatedAt = time.Now() attachment.StatusID = "" - if err := p.db.UpdateByPrimaryKey(ctx, attachment, updatingColumns...); err != nil { + if err := p.db.UpdateByID(ctx, attachment, attachment.ID, updatingColumns...); err != nil { return nil, gtserror.NewErrorNotFound(fmt.Errorf("db error updating attachment: %s", err)) } |