mirror of
https://github.com/gwenhael-le-moine/credger.git
synced 2024-12-26 09:58:36 +01:00
caching troubles
This commit is contained in:
parent
107ed1c093
commit
b27922ed53
1 changed files with 6 additions and 6 deletions
|
@ -3,7 +3,7 @@ app.service('API',
|
||||||
function($http) {
|
function($http) {
|
||||||
let API = this;
|
let API = this;
|
||||||
|
|
||||||
API.balance = _.memoize(function(period, categories, depth) {
|
API.balance = function(period, categories, depth) {
|
||||||
return $http.get('/api/ledger/balance', {
|
return $http.get('/api/ledger/balance', {
|
||||||
params: {
|
params: {
|
||||||
period: period,
|
period: period,
|
||||||
|
@ -11,25 +11,25 @@ app.service('API',
|
||||||
depth: depth
|
depth: depth
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
};
|
||||||
|
|
||||||
API.register = _.memoize(function(period, categories) {
|
API.register = function(period, categories) {
|
||||||
return $http.get('/api/ledger/register', {
|
return $http.get('/api/ledger/register', {
|
||||||
params: {
|
params: {
|
||||||
period: period,
|
period: period,
|
||||||
categories: categories
|
categories: categories
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
};
|
||||||
|
|
||||||
API.graph_values = _.memoize(function(period, categories) {
|
API.graph_values = function(period, categories) {
|
||||||
return $http.get('/api/ledger/graph_values', {
|
return $http.get('/api/ledger/graph_values', {
|
||||||
params: {
|
params: {
|
||||||
period: period,
|
period: period,
|
||||||
categories: categories
|
categories: categories
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
};
|
||||||
|
|
||||||
API.accounts = _.memoize(function() {
|
API.accounts = _.memoize(function() {
|
||||||
return $http.get('/api/ledger/accounts');
|
return $http.get('/api/ledger/accounts');
|
||||||
|
|
Loading…
Reference in a new issue