From 695b2980e6ad5ff907d65f907296df0b69c1a3cc Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Mon, 15 Oct 2018 13:06:19 +0100 Subject: [PATCH] Feature conflict Information where missing in contract show --- lib/modules/contracts_manager/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/modules/contracts_manager/index.js b/lib/modules/contracts_manager/index.js index c69d6da8..032fca3a 100644 --- a/lib/modules/contracts_manager/index.js +++ b/lib/modules/contracts_manager/index.js @@ -164,7 +164,9 @@ class ContractsManager { const result = []; self.events.request('contracts:all', null, (contracts) => { contracts.forEach((contract) => { - self.events.request('contracts:contract', contract.className, (contract) => result.push(contract)); + self.events.request('contracts:contract', contract.className, (c) => ( + result.push(Object.assign(contract, c)) + )); }); }); res.send(result);