...
|
...
|
@@ -129,11 +129,12 @@ const queryReason = (req, res, next) => { |
|
|
* @param next
|
|
|
*/
|
|
|
const saveMessage = (req, res, next) => {
|
|
|
const uid = req.user.uid;
|
|
|
const content = req.body.content;
|
|
|
const encId = req.body.encryptedUid;
|
|
|
const cvId = req.body.conversationId;
|
|
|
|
|
|
clientApi.saveMessage(content, encId, cvId)
|
|
|
clientApi.saveMessage(content, encId, cvId, uid)
|
|
|
.then(result => {
|
|
|
res.json(result);
|
|
|
}).catch(next);
|
...
|
...
|
|