瀏覽代碼

助手-assistantId

gemercheung 3 年之前
父節點
當前提交
b18b418ba4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/controller/room/index.js

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

@@ -90,7 +90,7 @@ export class RoomController extends BasicController {
       }
 
       const userObj = { ...this.user, onlineStatus: 1, isConnected: true, order };
-      const assistantId = this.roomAssistant.getRoomAssistant(this.roomId);
+      const assistantId = await this.roomAssistant.getRoomAssistant(this.roomId);
 
       if (assistantId && this.userId !== assistantId && !this.isHoster(this.user.role)) {
         this.logger.info("已存在默认助手变更:" + "room助手ID:" + assistantId + "userId: " + this.userId);