Review fixes

This commit is contained in:
Nithin David Thomas
2024-02-15 21:45:38 +05:30
parent e0b60eb3b6
commit 90a6a9d058
5 changed files with 16 additions and 8 deletions
@@ -45,7 +45,8 @@ class Api::V1::AccountsController < Api::BaseController
def update
@account.assign_attributes(account_params.slice(:name, :locale, :domain, :support_email, :auto_resolve_duration))
@account.custom_attributes['onboarding_step'] = 'invite_team' if custom_attributes_params[:onboarding_step].present?
@account.custom_attributes.merge!(custom_attributes_params)
@account.custom_attributes['onboarding_step'] = 'invite_team' if @account.custom_attributes['onboarding_step'] == 'account_update'
@account.save!
end