From 5960e9ee773b621ee96b7ad3745dcbfc10cf195a Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 14 Jul 2017 10:25:33 +0200 Subject: [PATCH] Rename item to account. --- src/accounts/account.controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/accounts/account.controller.ts b/src/accounts/account.controller.ts index ad8fc46..9272511 100644 --- a/src/accounts/account.controller.ts +++ b/src/accounts/account.controller.ts @@ -51,9 +51,9 @@ export class AccountController { load() { this.AccountService.query().subscribe(accounts => { - this.accounts = accounts.map((item: Account) => { - item.balances = this.AccountBalances.get({id: item.id}); - return item; + this.accounts = accounts.map((account: Account) => { + account.balances = this.AccountBalances.get({id: account.id}); + return account; }) }); };