Agregar las licencias solo si el sitio se pudo crear

This commit is contained in:
f 2021-08-28 12:20:40 -03:00
parent 339c02c92b
commit 2eff3ba716

View file

@ -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