|
@@ -26,7 +26,7 @@ const updateUser = async (userId, userObj) => {
|
|
|
|
|
|
const updateRoomUser = async (roomId, userId, userObj) => {
|
|
const updateRoomUser = async (roomId, userId, userObj) => {
|
|
try {
|
|
try {
|
|
- await pubClient.hSet(getInKey(userId), userObj.from || 2, JSON.stringify(userObj));
|
|
|
|
|
|
+ await pubClient.hSet(getInKey(userId), userObj.from, JSON.stringify(userObj));
|
|
await pubClient.hSet(getInKey(roomId), userId, JSON.stringify(userObj));
|
|
await pubClient.hSet(getInKey(roomId), userId, JSON.stringify(userObj));
|
|
return Promise.resolve(true);
|
|
return Promise.resolve(true);
|
|
} catch (error) {
|
|
} catch (error) {
|