utc string

This commit is contained in:
Benjamin Wilson 2025-02-26 20:15:24 -05:00
parent 7c3b31f7b3
commit e9949f4038
2 changed files with 3 additions and 3 deletions

View File

@ -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 = `

View File

@ -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);
}