mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 13:21:41 +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:
parent
0b353466a4
commit
7b68bc1569
1 changed files with 4 additions and 6 deletions
|
@ -14,11 +14,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
|
||||
|
||||
|
@ -27,11 +26,10 @@ 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)
|
||||
commit_config(action: :update) &&
|
||||
change_licencias
|
||||
end
|
||||
|
||||
change_licencias
|
||||
|
||||
site
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue