summary refs log tree commit diff
path: root/src/cdn/routes/guild-profiles.ts
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
commit1886d5394341e5ab3ceb089015dda12c90954c63 (patch)
tree79aaa9d0cc06a722c2a3a767dc6952cb2e564c11 /src/cdn/routes/guild-profiles.ts
parentDon't set default cdn endpoints. Null endpoints means to not update them in G... (diff)
downloadserver-1886d5394341e5ab3ceb089015dda12c90954c63.tar.xz
Use localhost:3001 as fallback when cdn endpoints are null rather than 3003
Diffstat (limited to 'src/cdn/routes/guild-profiles.ts')
-rw-r--r--src/cdn/routes/guild-profiles.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cdn/routes/guild-profiles.ts b/src/cdn/routes/guild-profiles.ts
index a02d152c..ae8786ae 100644
--- a/src/cdn/routes/guild-profiles.ts
+++ b/src/cdn/routes/guild-profiles.ts
@@ -59,7 +59,7 @@ router.post("/", multer.single("file"), async (req: Request, res: Response) => {
 	if (ANIMATED_MIME_TYPES.includes(type.mime)) hash = `a_${hash}`; // animated icons have a_ infront of the hash
 
 	const path = `guilds/${guild_id}/users/${user_id}/avatars/${hash}`;
-	const endpoint = Config.get().cdn.endpointPublic || "http://localhost:3003";
+	const endpoint = Config.get().cdn.endpointPublic || "http://localhost:3001";
 
 	await storage.set(path, buffer);