removed NODE_APP_INSTANCE 0 dependency

This commit is contained in:
Benjamin Wilson
2024-09-09 20:18:37 -04:00
parent fb8715c23d
commit 9db0afd9df
7 changed files with 31 additions and 26 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ export class AppService implements OnModuleInit {
}
async onModuleInit() {
if (process.env.NODE_APP_INSTANCE == null || process.env.NODE_APP_INSTANCE == '0') {
if (process.env.MASTER == 'true') {
setInterval(async () => {
await this.deleteOldStatistics();