mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
utc string
This commit is contained in:
@@ -48,7 +48,7 @@ export class ClientService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const values = Object.entries(this.heartbeatBulkUpdate).map(([key, value]) => {
|
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(',');
|
}).join(',');
|
||||||
|
|
||||||
const query = `
|
const query = `
|
||||||
|
|||||||
@@ -53,12 +53,12 @@ export class AppService implements OnModuleInit {
|
|||||||
setInterval(async () => {
|
setInterval(async () => {
|
||||||
//console.log('Bulk update client stats');
|
//console.log('Bulk update client stats');
|
||||||
await this.clientStatisticsService.doBulkAsyncUpdate();
|
await this.clientStatisticsService.doBulkAsyncUpdate();
|
||||||
}, 1000 * 60 * 1);
|
}, 1000 * 30);
|
||||||
|
|
||||||
setInterval(async () => {
|
setInterval(async () => {
|
||||||
//console.log('Bulk update client stats');
|
//console.log('Bulk update client stats');
|
||||||
await this.clientService.doBulkHeartbeatUpdate();
|
await this.clientService.doBulkHeartbeatUpdate();
|
||||||
}, 1000 * 60 * 1);
|
}, 1000 * 30);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user