Skip to content

Commit

Permalink
Merge pull request #24 from m-ruiz21/dev
Browse files Browse the repository at this point in the history
making sales report in descending order
  • Loading branch information
m-ruiz21 authored May 3, 2023
2 parents 580bfcb + 4861bc7 commit 6e00de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Project2Api/Services/Reports/ReportsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public async Task<ErrorOr<List<SalesReportDataPoint>>> GetSalesReport(DateTime s
s.Select(x => x.Quantity).DefaultIfEmpty(0).Sum(),
d
))
.OrderBy(g => g.Date)
.OrderByDescending(g => g.Date)
.ToList();

return salesReport;
Expand Down

0 comments on commit 6e00de8

Please sign in to comment.