client cleanup

This commit is contained in:
Ben Wilson
2023-08-04 16:40:52 -04:00
parent f85967daf8
commit d4bbd9ebef
2 changed files with 16 additions and 16 deletions
+6 -6
View File
@@ -36,11 +36,11 @@ export class AppService implements OnModuleInit {
}
}
// @Cron(CronExpression.EVERY_10_MINUTES)
// private async killDeadClients() {
@Cron(CronExpression.EVERY_10_MINUTES)
private async killDeadClients() {
// if (process.env.NODE_APP_INSTANCE == null || process.env.NODE_APP_INSTANCE == '0') {
// await this.clientService.killDeadClients();
// }
// }
if (process.env.NODE_APP_INSTANCE == null || process.env.NODE_APP_INSTANCE == '0') {
await this.clientService.killDeadClients();
}
}
}