diff --git a/src/ORM/client-statistics/client-statistics.service.ts b/src/ORM/client-statistics/client-statistics.service.ts index 1e19e5c..362e98a 100644 --- a/src/ORM/client-statistics/client-statistics.service.ts +++ b/src/ORM/client-statistics/client-statistics.service.ts @@ -81,7 +81,7 @@ export class ClientStatisticsService { try { await this.clientStatisticsRepository.query(query); - //console.log(`Bulk updated ${this.bulkAsyncUpdates.length} statistics`) + //console.log(`Bulk updated ${Object.keys(this.bulkAsyncUpdates).length} statistics`) } catch (error) { console.error('Bulk update failed:', error.message, query); throw error; diff --git a/src/ORM/client/client.service.ts b/src/ORM/client/client.service.ts index d86120a..4d21709 100644 --- a/src/ORM/client/client.service.ts +++ b/src/ORM/client/client.service.ts @@ -75,7 +75,7 @@ export class ClientService { try { await this.clientRepository.query(query); - console.log(`Bulk updated ${this.heartbeatBulkUpdate.length} client heartbeats`); + console.log(`Bulk updated ${Object.keys(this.heartbeatBulkUpdate).length} client heartbeats`); } catch (error) { console.error('Bulk heartbeat failed:', error.message, 'Query:', query); throw error;