mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
update all stats
This commit is contained in:
@@ -42,12 +42,6 @@ export class AppService implements OnModuleInit {
|
|||||||
await this.updateChart();
|
await this.updateChart();
|
||||||
}, 1000 * 60 * 10);
|
}, 1000 * 60 * 10);
|
||||||
|
|
||||||
setInterval(async () => {
|
|
||||||
console.log('Bulk update client stats');
|
|
||||||
await this.clientStatisticsService.doBulkAsyncUpdate();
|
|
||||||
}, 1000 * 60 * 1);
|
|
||||||
|
|
||||||
|
|
||||||
setInterval(async () => {
|
setInterval(async () => {
|
||||||
console.log('Refreshing user agent report view')
|
console.log('Refreshing user agent report view')
|
||||||
await this.userAgentReportService.refreshReport();
|
await this.userAgentReportService.refreshReport();
|
||||||
@@ -56,6 +50,12 @@ export class AppService implements OnModuleInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setInterval(async () => {
|
||||||
|
console.log('Bulk update client stats');
|
||||||
|
await this.clientStatisticsService.doBulkAsyncUpdate();
|
||||||
|
}, 1000 * 60 * 1);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private async deleteOldStatistics() {
|
private async deleteOldStatistics() {
|
||||||
|
|||||||
Reference in New Issue
Block a user