mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
chore: Prevent i18n config bleeding across requests (#1214)
This commit is contained in:
@@ -20,8 +20,7 @@ class Api::V1::Widget::BaseController < ApplicationController
|
||||
|
||||
def set_web_widget
|
||||
@web_widget = ::Channel::WebWidget.find_by!(website_token: permitted_params[:website_token])
|
||||
@account = @web_widget.account
|
||||
switch_locale @account
|
||||
@current_account = @web_widget.account
|
||||
end
|
||||
|
||||
def set_contact
|
||||
|
||||
Reference in New Issue
Block a user