diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-26 10:18:16 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-26 10:18:16 +1100 |
commit | 1886d5394341e5ab3ceb089015dda12c90954c63 (patch) | |
tree | 79aaa9d0cc06a722c2a3a767dc6952cb2e564c11 /src/cdn/routes/guild-profiles.ts | |
parent | Don't set default cdn endpoints. Null endpoints means to not update them in G... (diff) | |
download | server-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.ts | 2 |
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); |