|
@@ -4,7 +4,6 @@ const MessageModel = require('../model/message');
|
|
|
const ContactModel = require('../model/contact');
|
|
|
const fs = require('fs').promises;
|
|
|
const Jimp = require('jimp');
|
|
|
-const path = require('path');
|
|
|
const jwt = require('jsonwebtoken');
|
|
|
const createFolderIsExist = require('../helpers/create-directory');
|
|
|
require('dotenv').config();
|
|
@@ -189,6 +188,7 @@ const updateUser = async (req, res, next) => {
|
|
|
try {
|
|
|
const { id } = req.user;
|
|
|
await UserModel.updateUser(id, req.body);
|
|
|
+ const socketId = req.body.socketId;
|
|
|
return res.status(200).json({
|
|
|
data: {},
|
|
|
});
|