summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-26 10:18:16 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-26 10:18:16 +1100
commit08560d86557f354b4adc63ba72dbf64e0a86ab7b (patch)
tree73ea22d181e28037e2fbf93a59db9216ef7b0c7a /src/util
parentDon't set default cdn endpoints. Null endpoints means to not update them in G... (diff)
downloadserver-08560d86557f354b4adc63ba72dbf64e0a86ab7b.tar.xz
Use localhost:3001 as fallback when cdn endpoints are null rather than 3003
Diffstat (limited to 'src/util')
-rw-r--r--src/util/util/cdn.ts4
1 files changed, 2 insertions, 2 deletions
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,