From 1886d5394341e5ab3ceb089015dda12c90954c63 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Thu, 26 Jan 2023 10:18:16 +1100 Subject: Use localhost:3001 as fallback when cdn endpoints are null rather than 3003 --- src/util/util/cdn.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util') diff --git a/src/util/util/cdn.ts b/src/util/util/cdn.ts index 7f447c53..69d50159 100644 --- a/src/util/util/cdn.ts +++ b/src/util/util/cdn.ts @@ -36,7 +36,7 @@ export async function uploadFile( }); const response = await fetch( - `${Config.get().cdn.endpointPrivate || "http://localhost:3003"}${path}`, + `${Config.get().cdn.endpointPrivate || "http://localhost:3001"}${path}`, { headers: { signature: Config.get().security.requestSignature, @@ -75,7 +75,7 @@ export async function handleFile( export async function deleteFile(path: string) { const response = await fetch( - `${Config.get().cdn.endpointPrivate || "http://localhost:3003"}${path}`, + `${Config.get().cdn.endpointPrivate || "http://localhost:3001"}${path}`, { headers: { signature: Config.get().security.requestSignature, -- cgit 1.5.1