From 3c7a89f2c517711df4bbb2a49265f94ef7052ed8 Mon Sep 17 00:00:00 2001 From: SuriyaR Date: Fri, 9 Aug 2019 13:13:00 +0530 Subject: [PATCH] Peers error --- server/controllers/BlockchainKernel.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/controllers/BlockchainKernel.ts b/server/controllers/BlockchainKernel.ts index b70b1fe..fbf2120 100644 --- a/server/controllers/BlockchainKernel.ts +++ b/server/controllers/BlockchainKernel.ts @@ -525,9 +525,12 @@ export class BlockchainKernelController { data += chunk; let dataJson = self.IsJsonString(data); + if(dataJson.length > 0){ + dataJson.forEach(function (value, i) { value['id'] = i; }); + } response.status(200).json({ status: 200, timestamp: Date.now(),