@@ -12,7 +12,7 @@ const createMessage = (roomId, user, msg) => {
userId: user.userId,
nickname: user.nickname,
roomId: user.roomId,
- msg: msg,
+ content: msg,
createTime: Date.now(),
};
pubClient.publish("getRoomMessage", JSON.stringify(msgObj));