From 64c53441cb31d67d8d4c92383d0bb53c3d752648 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Thu, 27 Jul 2017 01:02:02 +0200 Subject: [PATCH] Use Daily Balance service in Balance Chart component. --- src/operations/balance-chart.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/operations/balance-chart.component.ts b/src/operations/balance-chart.component.ts index 082480d..7b5c920 100644 --- a/src/operations/balance-chart.component.ts +++ b/src/operations/balance-chart.component.ts @@ -38,13 +38,13 @@ module.exports = angular.module('balanceChartModule', [ account: '<', onUpdate: '&' }, - controller: function(accountIdService, Balances, $element) { + controller: function(accountIdService, DailyBalanceService, $element) { var vm = this; vm.loadData = function() { - Balances.query({ - id: accountIdService.get() - }, function(results) { + DailyBalanceService.query( + accountIdService.get() + ).subscribe(function(results) { var headers = [['date', 'balances', 'expenses', 'revenues']]; var rows = results.map(function(result) {