diff --git a/app/services/post_service.rb b/app/services/post_service.rb index 90aa9401..84f58dad 100644 --- a/app/services/post_service.rb +++ b/app/services/post_service.rb @@ -19,9 +19,10 @@ PostService = Struct.new(:site, :usuarie, :post, :params, keyword_init: true) do # Crea los posts anidados create_nested_posts! post, params[:post] + post.save update_related_posts - commit(action: :created, add: files) if post.save + commit(action: :created, add: files) update_site_license!