Feature: add retrieve account entries service

This commit is contained in:
2015-08-18 09:19:14 +00:00
parent 0b28dd0c07
commit f0cd72c8a1
2 changed files with 44 additions and 5 deletions

View File

@@ -252,11 +252,7 @@ module.exports = {
list_entries : function(request, response) {
return check_account(request, response, function(errors, account) {
Entry.find({
account_id: account.id
})
.sort('-date')
.exec(function(errors, entries) {
list_entries(account.id, null, function(errors, entries) {
if( errors ) {
return Handler.errorHandler(errors, 500, response);
}