5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 06:56:22 +00:00

fix: primero guardar para que se actualicen las relaciones

This commit is contained in:
f 2024-04-23 14:11:58 -03:00
parent 88c9399ba5
commit b3ed65b340
No known key found for this signature in database

View file

@ -19,9 +19,10 @@ PostService = Struct.new(:site, :usuarie, :post, :params, keyword_init: true) do
# Crea los posts anidados # Crea los posts anidados
create_nested_posts! post, params[:post] create_nested_posts! post, params[:post]
post.save
update_related_posts update_related_posts
commit(action: :created, add: files) if post.save commit(action: :created, add: files)
update_site_license! update_site_license!