summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-17 15:56:58 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-17 15:56:58 +1000
commitb19d9fe2949133bdcc24761c7cbc6df7f12d68cc (patch)
treeeefffe62888b4aa849e0be65db6b34812321239a
parentthe merge broke compile??? (diff)
downloadserver-b19d9fe2949133bdcc24761c7cbc6df7f12d68cc.tar.xz
Attempt to fix headers being set after send to client in send message
-rw-r--r--api/src/routes/channels/#channel_id/messages/index.ts2
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);
 		}