Attempt to fix headers being set after send to client in send message

This commit is contained in:
Madeline 2022-07-17 15:56:58 +10:00
parent e007bec1b2
commit b19d9fe294

View File

@ -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);
}