From b27922ed533d80d99875ee1d4696710788b6f8b6 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 27 Nov 2017 15:19:10 +0100 Subject: [PATCH] caching troubles --- public/ts/services/API.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/ts/services/API.ts b/public/ts/services/API.ts index 30a772e..bee22ff 100644 --- a/public/ts/services/API.ts +++ b/public/ts/services/API.ts @@ -3,7 +3,7 @@ app.service('API', function($http) { let API = this; - API.balance = _.memoize(function(period, categories, depth) { + API.balance = function(period, categories, depth) { return $http.get('/api/ledger/balance', { params: { period: period, @@ -11,25 +11,25 @@ app.service('API', depth: depth } }); - }); + }; - API.register = _.memoize(function(period, categories) { + API.register = function(period, categories) { return $http.get('/api/ledger/register', { params: { period: period, categories: categories } }); - }); + }; - API.graph_values = _.memoize(function(period, categories) { + API.graph_values = function(period, categories) { return $http.get('/api/ledger/graph_values', { params: { period: period, categories: categories } }); - }); + }; API.accounts = _.memoize(function() { return $http.get('/api/ledger/accounts');