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/cdn/routes/attachments.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cdn/routes/attachments.ts') diff --git a/src/cdn/routes/attachments.ts b/src/cdn/routes/attachments.ts index d7764bd7..398a243f 100644 --- a/src/cdn/routes/attachments.ts +++ b/src/cdn/routes/attachments.ts @@ -50,7 +50,7 @@ router.post( const path = `attachments/${channel_id}/${id}/${filename}`; const endpoint = - Config.get()?.cdn.endpointPublic || "http://localhost:3003"; + Config.get()?.cdn.endpointPublic || "http://localhost:3001"; await storage.set(path, buffer); let width; -- cgit 1.5.1