5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-29 15:56:21 +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
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!