From f5a838442c4395659a792e0f5e7fb4a6aafadf3e Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 18 Oct 2023 03:12:22 +0100 Subject: [PATCH] fix accsaber not being proxied --- src/network/queues/accsaber/api-queue.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/network/queues/accsaber/api-queue.js b/src/network/queues/accsaber/api-queue.js index 2caa309..4d0b5aa 100644 --- a/src/network/queues/accsaber/api-queue.js +++ b/src/network/queues/accsaber/api-queue.js @@ -1,7 +1,8 @@ -import { default as createQueue, PRIORITY } from "../http-queue"; +import ssrConfig from "../../../ssr-config"; import { substituteVars } from "../../../utils/format"; +import { default as createQueue, PRIORITY } from "../http-queue"; -const ACCSABER_API_URL = "https://api.accsaber.com"; +const ACCSABER_API_URL = ssrConfig.proxy + "/https://api.accsaber.com"; const CATEGORIES_URL = ACCSABER_API_URL + "/categories"; const RANKING_URL = ACCSABER_API_URL + "/categories/${category}/standings"; const PLAYER_SCORES_URL = ACCSABER_API_URL + "/players/${playerId}/scores";