Don't insert stats in the future

This commit is contained in:
nymkappa 2022-08-05 12:43:26 +02:00
parent 0f9941f0d1
commit c01c610bb3
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -33,7 +33,6 @@ class LightningStatsUpdater {
private async $logStatsDaily(): Promise<void> { private async $logStatsDaily(): Promise<void> {
const date = new Date(); const date = new Date();
this.setDateMidnight(date); this.setDateMidnight(date);
date.setUTCHours(24);
logger.info(`Updating latest node stats`); logger.info(`Updating latest node stats`);
const networkGraph = await lightningApi.$getNetworkGraph(); const networkGraph = await lightningApi.$getNetworkGraph();