From 78deb3a37507ef327e6e775f1f5ed2ffad107d51 Mon Sep 17 00:00:00 2001 From: Benjamin Wilson Date: Wed, 26 Feb 2025 17:52:32 -0500 Subject: [PATCH] logging --- src/ORM/client-statistics/client-statistics.service.ts | 2 +- src/ORM/client/client.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;