caching troubles

This commit is contained in:
Gwenhael Le Moine 2017-11-27 15:19:10 +01:00
parent 107ed1c093
commit b27922ed53
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

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