浏览代码

增加不存在房间时buildRoom

gemercheung 3 年之前
父节点
当前提交
5defa13311
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/controller/room/assistant.js

+ 1 - 0
src/controller/room/assistant.js

@@ -175,6 +175,7 @@ export class RoomAssistant {
     if (hasRoom) {
       await this.redis.hSet(getInKey(roomId), userId, JSON.stringify(user));
     } else {
+      await buildRoom(roomId, userId, user);
       this.room.logger.error("不存在房间", roomId);
     }
     if (!isJoinRoom) {