From 7bc4acfa5af9d9ff4fa087426d3f5728cafb0e8c Mon Sep 17 00:00:00 2001 From: Thomas Alvarenga Date: Fri, 3 Jan 2025 10:15:47 -0300 Subject: [PATCH] Added timestamp to website metrics json file --- src/presentation/cli/CollectMetrics.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/presentation/cli/CollectMetrics.ts b/src/presentation/cli/CollectMetrics.ts index bc62aec..090dc9d 100644 --- a/src/presentation/cli/CollectMetrics.ts +++ b/src/presentation/cli/CollectMetrics.ts @@ -26,7 +26,8 @@ const execute = async (): Promise => { const totalTransactions = parseInt(stats.total_transactions) const content = JSON.stringify({ 'btc-transactions': totalTransactions.toString(), - 'latest-keystone': blockNumber.toString() + 'latest-keystone': blockNumber.toString(), + timestamp: new Date().getTime() }) console.info('Hemi Connector | Creating metrics file')