Feature conflict

Information where missing in contract show
This commit is contained in:
Anthony Laibe 2018-10-15 13:06:19 +01:00 committed by Pascal Precht
parent b423e87e49
commit 695b2980e6
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 3 additions and 1 deletions

View File

@ -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);