Deals are now ordered by most recent first.

This commit is contained in:
Clinton Alexander 2016-07-12 16:21:54 +01:00
parent 20f5467e91
commit b78995a8e4

View File

@ -54,7 +54,7 @@ define(['angular', 'lodash', 'viewmodel/deal'], (angular, _, dealViewModel) => {
this.getDeals = () => {
return load('deals', $http.get('http://localhost:31338/api/irs/deals')).then((resp) => {
return resp.data;
return resp.data.reverse();
});
};