diff --git a/CHANGELOG.md b/CHANGELOG.md index e2dbd3d..3cd1f6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ # Next Release +* Added API for category budget +* Added working test for the new API + # v0.10.3 * Added Category and Transaction Category tables to DB diff --git a/lib/Pear/LocalLoop/Controller/Api/Categories.pm b/lib/Pear/LocalLoop/Controller/Api/Categories.pm index 8e52d4b..10b4380 100644 --- a/lib/Pear/LocalLoop/Controller/Api/Categories.pm +++ b/lib/Pear/LocalLoop/Controller/Api/Categories.pm @@ -33,7 +33,7 @@ sub post_category_list { } ], group_by => [ qw/ category_id quantised_weeks / ], - order_by => { '-desc' => 'quantised_weeks' }, + order_by => { '-desc' => 'value' }, } );