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:
parent
88c9399ba5
commit
b3ed65b340
1 changed files with 2 additions and 1 deletions
|
@ -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!
|
||||
|
||||
|
|
Loading…
Reference in a new issue