浏览代码

buildRoom is not undefined

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

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

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