sending images through messages works

This commit is contained in:
jackiettran
2025-12-18 19:37:16 -05:00
parent 996e815d57
commit 4b4584bc0f
6 changed files with 52 additions and 22 deletions

View File

@@ -316,7 +316,7 @@ router.post('/', authenticateToken, async (req, res, next) => {
error: error.message,
stack: error.stack,
senderId: req.user.id,
receiverId: req.body.receiverId
receiverId: req.body?.receiverId
});
next(error);
}