only delete clients once

This commit is contained in:
Ben Wilson
2023-08-03 23:23:32 -04:00
parent 03150f90df
commit 018eec17f2
+2
View File
@@ -33,7 +33,9 @@ export class StratumV1Service implements OnModuleInit {
async onModuleInit(): Promise<void> { async onModuleInit(): Promise<void> {
//await this.clientStatisticsService.deleteAll(); //await this.clientStatisticsService.deleteAll();
if (process.env.NODE_APP_INSTANCE == null || process.env.NODE_APP_INSTANCE == '0') {
await this.clientService.deleteAll(); await this.clientService.deleteAll();
}
this.startSocketServer(); this.startSocketServer();
} }