Procházet zdrojové kódy

助手-assistantId

gemercheung před 3 roky
rodič
revize
b18b418ba4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 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)) {
       if (assistantId && this.userId !== assistantId && !this.isHoster(this.user.role)) {
         this.logger.info("已存在默认助手变更:" + "room助手ID:" + assistantId + "userId: " + this.userId);
         this.logger.info("已存在默认助手变更:" + "room助手ID:" + assistantId + "userId: " + this.userId);