From 25ff2e4644fd61014c770e872bdf063bf0cbabc2 Mon Sep 17 00:00:00 2001 From: Niilyx Date: Sat, 15 Jun 2024 01:51:52 +0200 Subject: [PATCH] removed debug log + new clause for resettting server --- src/realms/worker/watchers/GameServerWatcher.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/realms/worker/watchers/GameServerWatcher.ts b/src/realms/worker/watchers/GameServerWatcher.ts index 7d0cbc4..12dbe2c 100644 --- a/src/realms/worker/watchers/GameServerWatcher.ts +++ b/src/realms/worker/watchers/GameServerWatcher.ts @@ -4,9 +4,6 @@ import { AnimusWorker } from "../index" export default class GameServerWatcher { private async getServersToReset() { - const allServsDebug = await prisma.server.findMany(); - console.log("==================== FETCHING POSSIBLE RESETS ====================") - console.log(allServsDebug); const servers = await prisma.server.findMany({ where: { permanent: false, @@ -18,6 +15,9 @@ export default class GameServerWatcher { }, lastPlayerUpdate: { lt: new Date(Date.now() - 1000 * 60) + }, + createdAt: { + lt: new Date(Date.now() - 1000 * 60 * 5) } }, select: {