mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-10 21:01:42 +00:00
fixup! fix: qué pasa con los objetos
This commit is contained in:
parent
75b6314e1d
commit
bd0df0a53a
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class FixDuplicateObjects < ActiveRecord::Migration[6.1]
|
||||||
objects = ActivityPub::Object.where(uri: uri)
|
objects = ActivityPub::Object.where(uri: uri)
|
||||||
deleted_ids = objects[1..].map(&:delete).map(&:id)
|
deleted_ids = objects[1..].map(&:delete).map(&:id)
|
||||||
|
|
||||||
ActivityPub.where(object_id: deleted_ids).update_all(object_id: object.first.id, updated_at: Time.now)
|
ActivityPub.where(object_id: deleted_ids).update_all(object_id: objects.first.id, updated_at: Time.now)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue