mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 21:36:21 +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
a587ed76c1
commit
401c80ba80
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