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
+1 -1
View File
@@ -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 = `
+2 -2
View File
@@ -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);
} }