5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-09-20 22:22:06 +00:00

fixup! fix: qué pasa con los objetos

This commit is contained in:
f 2024-03-18 15:47:38 -03:00
parent 75b6314e1d
commit bd0df0a53a
No known key found for this signature in database

View file

@ -7,7 +7,7 @@ class FixDuplicateObjects < ActiveRecord::Migration[6.1]
objects = ActivityPub::Object.where(uri: uri)
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