From 0c7e53eddd83e619b3557d7a519d6b5d6badc26f Mon Sep 17 00:00:00 2001 From: Niilyx Date: Sat, 15 Jun 2024 01:32:53 +0200 Subject: [PATCH] debug log of all servs --- src/realms/worker/watchers/GameServerWatcher.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/realms/worker/watchers/GameServerWatcher.ts b/src/realms/worker/watchers/GameServerWatcher.ts index f28f036..7d0cbc4 100644 --- a/src/realms/worker/watchers/GameServerWatcher.ts +++ b/src/realms/worker/watchers/GameServerWatcher.ts @@ -4,6 +4,9 @@ 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, @@ -11,7 +14,7 @@ export default class GameServerWatcher { gameServer: { requestedGameName: { not: null - } + }, }, lastPlayerUpdate: { lt: new Date(Date.now() - 1000 * 60)