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 | b19d9fe2949133bdcc24761c7cbc6df7f12d68cc (patch) | |
tree | eefffe62888b4aa849e0be65db6b34812321239a /api/src | |
parent | the merge broke compile??? (diff) | |
download | server-b19d9fe2949133bdcc24761c7cbc6df7f12d68cc.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); } |