mirror of
https://github.com/Febbweiss/CloudBudget.git
synced 2026-03-04 22:35:38 +00:00
Feature: add retrieve account entries service
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user