Support : les comptes utilisateurs affichés par HelpScout sont maintenant insensibles à la casse de l'email
webhook: make HelpScout email search case-insensitive
This commit is contained in:
commit
189160db2e
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ class WebhookController < ActionController::Base
|
||||||
before_action :verify_signature!, only: :helpscout
|
before_action :verify_signature!, only: :helpscout
|
||||||
|
|
||||||
def helpscout
|
def helpscout
|
||||||
email = params[:customer][:email]
|
email = params[:customer][:email].downcase
|
||||||
user = User.find_by(email: email)
|
user = User.find_by(email: email)
|
||||||
gestionnaire = Gestionnaire.find_by(email: email)
|
gestionnaire = Gestionnaire.find_by(email: email)
|
||||||
administrateur = Administrateur.find_by(email: email)
|
administrateur = Administrateur.find_by(email: email)
|
||||||
|
|
Loading…
Reference in a new issue