diff options
Diffstat (limited to 'internal/media/pruneremote.go')
-rw-r--r-- | internal/media/pruneremote.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/media/pruneremote.go b/internal/media/pruneremote.go index 43ce53cdc..19a9642d7 100644 --- a/internal/media/pruneremote.go +++ b/internal/media/pruneremote.go @@ -90,7 +90,7 @@ func (m *manager) pruneOneRemote(ctx context.Context, attachment *gtsmodel.Media // update the attachment to reflect that we no longer have it cached if changed { - return m.db.UpdateByPrimaryKey(ctx, attachment, "updated_at", "cached") + return m.db.UpdateByID(ctx, attachment, attachment.ID, "updated_at", "cached") } return nil |