diff options
Diffstat (limited to 'server/providers/gateways/chat_room.gateway.ts')
-rw-r--r-- | server/providers/gateways/chat_room.gateway.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/providers/gateways/chat_room.gateway.ts b/server/providers/gateways/chat_room.gateway.ts index 9c305bf..76f7bd8 100644 --- a/server/providers/gateways/chat_room.gateway.ts +++ b/server/providers/gateways/chat_room.gateway.ts @@ -31,11 +31,12 @@ export class ChatRoomGateway implements OnGatewayInit, OnGatewayConnection, OnGa ) { setInterval(async () => { const inactiveRooms = await chatRoomService.inactiveRooms(); + console.log(inactiveRooms); inactiveRooms.forEach((room) => { this.server.to(room.id).emit('inactive', room.id); chatRoomService.remove(room); }); - }, 5 * (1000 * 60)); + }, 1000 * 60 * 5); } afterInit(server: Server) { |