From 16b766b14f7ce9f3d4c22e8e100f04cc4ec0d95b Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Sun, 23 Dec 2018 12:00:18 +0100
Subject: [PATCH] [fix] #1316 /blockchain/with/ud was broken

---
 app/modules/crawler/lib/sync/v2/GlobalIndexStream.ts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/modules/crawler/lib/sync/v2/GlobalIndexStream.ts b/app/modules/crawler/lib/sync/v2/GlobalIndexStream.ts
index 1633a72d0..be25b7df2 100644
--- a/app/modules/crawler/lib/sync/v2/GlobalIndexStream.ts
+++ b/app/modules/crawler/lib/sync/v2/GlobalIndexStream.ts
@@ -336,6 +336,8 @@ export class GlobalIndexStream extends Duplex {
       return block
     }))
 
+    await DuniterBlockchain.pushStatsForBlocks(blocks, this.dal)
+
     if (this.conf.storage && this.conf.storage.transactions) {
       await Promise.all(blocks.map(block => this.dal.saveTxsInFiles(block.transactions, block.number, block.medianTime)))
     }
-- 
GitLab