gemercheung 3 years ago
parent
commit
49911c96dc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/controller/room/index.js

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

@@ -104,7 +104,8 @@ export class RoomController extends BasicController {
       }
       if (user.oid) {
         const hasDuplicateUser = await this.roomAssistant.getOpenidInRoom(this.roomId, user.oid);
-        if (hasDuplicateUser.length > 0) {
+        console.log("hasDuplicateUser", typeof hasDuplicateUser);
+        if (hasDuplicateUser && hasDuplicateUser.length > 0) {
           this.logger.info(
             "hasDuplicateUser",
             hasDuplicateUser.reduce((prev, current) => {