gemercheung 3 năm trước cách đây
mục cha
commit
49911c96dc
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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) => {