gemercheung 3 år sedan
förälder
incheckning
c5e829732f
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/controller/room/assistant.js

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

@@ -336,10 +336,10 @@ export class RoomAssistant {
     } else {
       this.closeRoom(roomId, userId, user);
     }
-    this.removeRoomSession(this.room.sessionId);
+    this.removeRoomSession(this.room);
   }
 
-  removeRoomSession(roomSessionId) {
+  async removeRoomSession(roomSessionId) {
     await this.redis.del(getInKey(roomSessionId));
   }