summaryrefslogtreecommitdiff
path: root/internal/processing/media/unattach.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/media/unattach.go')
-rw-r--r--internal/processing/media/unattach.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/processing/media/unattach.go b/internal/processing/media/unattach.go
index 7c6f7dbac..8db602239 100644
--- a/internal/processing/media/unattach.go
+++ b/internal/processing/media/unattach.go
@@ -49,7 +49,7 @@ func (p *Processor) Unattach(ctx context.Context, account *gtsmodel.Account, med
attachment.UpdatedAt = time.Now()
attachment.StatusID = ""
- if err := p.state.DB.UpdateByID(ctx, attachment, attachment.ID, updatingColumns...); err != nil {
+ if err := p.state.DB.UpdateAttachment(ctx, attachment, updatingColumns...); err != nil {
return nil, gtserror.NewErrorNotFound(fmt.Errorf("db error updating attachment: %s", err))
}