From fc552d2044b2662d7c32c1e5a7b4ad56d3678ddf Mon Sep 17 00:00:00 2001 From: Adrien Teulade Date: Wed, 31 May 2023 14:35:19 +0100 Subject: [PATCH] moving the appupgrade api url to a variable. --- src/api.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api.js b/src/api.js index 2f1eb08..1f740b3 100644 --- a/src/api.js +++ b/src/api.js @@ -1,9 +1,8 @@ import axios from "axios"; import axiosRetry from 'axios-retry'; -async function checkVersionWithAppUpgrade(appInfo, xApiKey) { +async function checkVersionWithAppUpgrade(appInfo, xApiKey, appUpgradeBaseUrl) { try { - const appUpgradeBaseUrl = "https://appupgrade.dev"; const { appName, appVersion, platform, environment, appLanguage } = appInfo; axiosRetry(axios, { retries: 3, retryDelay: axiosRetry.exponentialDelay, retryCondition: () => true });