fix: Set and Update portal's default locale (#5368)

This commit is contained in:
Tejaswini Chile
2022-09-01 16:44:06 +05:30
committed by GitHub
parent f4fc53b425
commit ee2189d98a
2 changed files with 3 additions and 2 deletions

View File

@@ -58,7 +58,8 @@ class Api::V1::Accounts::PortalsController < Api::V1::Accounts::BaseController
def portal_params
params.require(:portal).permit(
:account_id, :color, :custom_domain, :header_text, :homepage_link, :name, :page_title, :slug, :archived, config: { allowed_locales: [] }
:account_id, :color, :custom_domain, :header_text, :homepage_link, :name, :page_title, :slug, :archived, { config: [:default_locale,
{ allowed_locales: [] }] }
)
end