From df4adfe7170fc3e2bae144b5f6a0bd4f107fc9ab Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 8 Jan 2021 13:30:52 +0100 Subject: [PATCH] :bug: Fix inconsistent naming on rpc call on github and google auth provider. --- backend/src/app/http/auth/github.clj | 2 +- backend/src/app/http/auth/google.clj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/app/http/auth/github.clj b/backend/src/app/http/auth/github.clj index 091a7155c..43ca5fc4a 100644 --- a/backend/src/app/http/auth/github.clj +++ b/backend/src/app/http/auth/github.clj @@ -120,7 +120,7 @@ (ex/raise :type :authentication :code :unable-to-authenticate-with-github)) - (let [method-fn (get-in rpc [:method :mutations :login-or-register]) + (let [method-fn (get-in rpc [:method :mutation :login-or-register]) profile (method-fn {:email (:email info) :fullname (:fullname info)}) uagent (get-in request [:headers "user-agent"]) diff --git a/backend/src/app/http/auth/google.clj b/backend/src/app/http/auth/google.clj index 83023d613..a3d05a0b3 100644 --- a/backend/src/app/http/auth/google.clj +++ b/backend/src/app/http/auth/google.clj @@ -110,7 +110,7 @@ (ex/raise :type :authentication :code :unable-to-authenticate-with-google)) - (let [method-fn (get-in rpc [:method :mutations :login-or-register]) + (let [method-fn (get-in rpc [:method :mutation :login-or-register]) profile (method-fn {:email (:email info) :fullname (:fullname info)}) uagent (get-in request [:headers "user-agent"])