|
@@ -13,9 +13,10 @@ const createMessage = (roomId, user, msg) => {
|
|
|
nickname: user.nickname,
|
|
|
roomId: user.roomId,
|
|
|
msg: msg,
|
|
|
- createTime: Math.floor(Date.now() / 1000),
|
|
|
+ createTime: Date.now(),
|
|
|
};
|
|
|
pubClient.publish("getRoomMessage", JSON.stringify(msgObj));
|
|
|
+ // console.log("createMessage", getInKey(msgConfigKey), msgObj);
|
|
|
return pubClient.hSet(getInKey(msgConfigKey), `${msgObj.createTime}`, JSON.stringify(msgObj));
|
|
|
};
|
|
|
|