mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-04-02 08:58:02 +02:00
utc string
This commit is contained in:
parent
7c3b31f7b3
commit
e9949f4038
@ -48,7 +48,7 @@ export class ClientService {
|
||||
}
|
||||
|
||||
const values = Object.entries(this.heartbeatBulkUpdate).map(([key, value]) => {
|
||||
return `('${value.id}', ${value.hashRate}, '${value.updatedAt.toISOString().slice(0, -1)}')`
|
||||
return `('${value.id}', ${value.hashRate}, '${value.updatedAt.toUTCString()}')`
|
||||
}).join(',');
|
||||
|
||||
const query = `
|
||||
|
@ -53,12 +53,12 @@ export class AppService implements OnModuleInit {
|
||||
setInterval(async () => {
|
||||
//console.log('Bulk update client stats');
|
||||
await this.clientStatisticsService.doBulkAsyncUpdate();
|
||||
}, 1000 * 60 * 1);
|
||||
}, 1000 * 30);
|
||||
|
||||
setInterval(async () => {
|
||||
//console.log('Bulk update client stats');
|
||||
await this.clientService.doBulkHeartbeatUpdate();
|
||||
}, 1000 * 60 * 1);
|
||||
}, 1000 * 30);
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user