diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-17 15:56:58 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-17 15:56:58 +1000 |
commit | a1869d972301420a1645b150c107a11e32dc392e (patch) | |
tree | df49d1cf4f5902afee37349215b06687c1db634c /api/src | |
parent | the merge broke compile??? (diff) | |
download | server-a1869d972301420a1645b150c107a11e32dc392e.tar.xz |
Attempt to fix headers being set after send to client in send message
Diffstat (limited to 'api/src')
-rw-r--r-- | api/src/routes/channels/#channel_id/messages/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/channels/#channel_id/messages/index.ts b/api/src/routes/channels/#channel_id/messages/index.ts index 54e6edcc..57273776 100644 --- a/api/src/routes/channels/#channel_id/messages/index.ts +++ b/api/src/routes/channels/#channel_id/messages/index.ts @@ -179,7 +179,7 @@ const messageUpload = multer({ router.post( "/", messageUpload.any(), - async (req, res, next) => { + (req, res, next) => { if (req.body.payload_json) { req.body = JSON.parse(req.body.payload_json); } |