diff --git a/app/services/post_service.rb b/app/services/post_service.rb index ff2ac6bd..6f42bb22 100644 --- a/app/services/post_service.rb +++ b/app/services/post_service.rb @@ -225,7 +225,7 @@ PostService = Struct.new(:site, :usuarie, :post, :params, keyword_init: true) do when 'belongs_to', 'has_one' if value_was.present? associated_posts(value_was).each do |remove_post| - remove_relation_from(remove_post[inverse_attribute], value_was) + remove_relation_from(remove_post[inverse_attribute], post.uuid.value) end end