From ebf7b32408cc68752680cc8085a0e367352a2867 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Mon, 3 Aug 2020 20:47:44 -0400 Subject: [PATCH] Fix Proxy error issue #1027 --- helpers/strategies/AxiosStrategy.js | 2 +- helpers/strategies/ExtensionStrategy.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/strategies/AxiosStrategy.js b/helpers/strategies/AxiosStrategy.js index 76180b72b..c170fc734 100644 --- a/helpers/strategies/AxiosStrategy.js +++ b/helpers/strategies/AxiosStrategy.js @@ -23,7 +23,7 @@ const axiosWithProxy = async (req, { state }) => { } ) - if (!data.data.success) { + if (!data.success) { throw new Error(data.data.message || "Proxy Error") } diff --git a/helpers/strategies/ExtensionStrategy.js b/helpers/strategies/ExtensionStrategy.js index b96737e28..041776ecd 100644 --- a/helpers/strategies/ExtensionStrategy.js +++ b/helpers/strategies/ExtensionStrategy.js @@ -27,7 +27,7 @@ const extensionWithProxy = async (req, { state }) => { const parsedData = JSON.parse(data) - if (!parsedData.data.success) { + if (!parsedData.success) { throw new Error(parsedData.data.message || "Proxy Error") }