Skip to content

Commit

Permalink
debug log of all servs
Browse files Browse the repository at this point in the history
  • Loading branch information
Niilyx committed Jun 14, 2024
1 parent 2c03043 commit 0c7e53e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/realms/worker/watchers/GameServerWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ 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,
ready: true,
gameServer: {
requestedGameName: {
not: null
}
},
},
lastPlayerUpdate: {
lt: new Date(Date.now() - 1000 * 60)
Expand Down

0 comments on commit 0c7e53e

Please sign in to comment.