mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 20:26:22 +00:00
Agregar las licencias solo si el sitio se pudo crear
This commit is contained in:
parent
339c02c92b
commit
2eff3ba716
1 changed files with 2 additions and 3 deletions
|
@ -13,11 +13,10 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do
|
|||
I18n.with_locale(usuarie&.lang&.to_sym || I18n.default_locale) do
|
||||
site.save &&
|
||||
site.config.write &&
|
||||
commit_config(action: :create)
|
||||
commit_config(action: :create) &&
|
||||
add_licencias
|
||||
end
|
||||
|
||||
add_licencias
|
||||
|
||||
site
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue