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,10 +13,9 @@ 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)
end
commit_config(action: :create) &&
add_licencias
end
site
end