diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-21 15:37:16 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-21 15:37:16 +1100 |
commit | 30e65415e431e396c0092d8efad3aa82aa0a8307 (patch) | |
tree | e9addde416df18a51ab97d6d7c6c702e0bdc84e5 /src/api/routes/channels | |
parent | Fix the roles bug (diff) | |
download | server-30e65415e431e396c0092d8efad3aa82aa0a8307.tar.xz |
Set default cdn endpoints so that local testing works
Diffstat (limited to 'src/api/routes/channels')
-rw-r--r-- | src/api/routes/channels/#channel_id/messages/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts index 86864edb..523b0cf8 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts @@ -247,7 +247,7 @@ router.post( Attachment.create({ ...file, proxy_url: file.url }), ); } catch (error) { - return res.status(400).json(error); + return res.status(400).json({ message: error!.toString() }) } } |