From 5b8d0008567eba55a3b425cb475b42990634246b Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Fri, 1 Apr 2022 17:07:47 -0600 Subject: Fix timeout for chat rooms --- server/providers/gateways/chat_room.gateway.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/providers/gateways/chat_room.gateway.ts') 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) { -- cgit v1.2.3-70-g09d2