Merge pull request #2260 from mempool/nymkappa/bugfix/missing-last-data-charts

Don't insert stats in the future
This commit is contained in:
wiz 2022-08-08 17:10:59 +09:00 committed by GitHub
commit bd822998a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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