Skip to content

Commit

Permalink
removed debug log + new clause for resettting server
Browse files Browse the repository at this point in the history
  • Loading branch information
Niilyx committed Jun 14, 2024
1 parent 0c7e53e commit 25ff2e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/realms/worker/watchers/GameServerWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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: {
Expand Down

0 comments on commit 25ff2e4

Please sign in to comment.