5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-10-04 22:56:55 +00:00

fix: crear las licencias después de crear el título

y los commits también se harían en el idioma de le usuarie
This commit is contained in:
f 2023-03-22 18:45:41 -03:00
parent 0b353466a4
commit 7b68bc1569

View file

@ -14,10 +14,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
@ -27,10 +26,9 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do
I18n.with_locale(usuarie&.lang&.to_sym || I18n.default_locale) do
site.update(params) &&
site.config.write &&
commit_config(action: :update)
end
commit_config(action: :update) &&
change_licencias
end
site
end