Skip to content

Commit 9bd96f2

Browse files
authored
Merge pull request #49 from DiyorMarket/fix-dashboard-bug
bug fixed
2 parents 0617aa4 + f87d03d commit 9bd96f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CheckDrive.Api/CheckDrive.Application/Services/DashboardService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ private async Task<List<CheckPointSummary>> GetCheckPointsSummariesAsync()
7474
{
7575
var checkPoints = await _context.CheckPoints
7676
.Where(x => x.StartDate == DateTime.UtcNow || x.Status == CheckPointStatus.InProgress)
77+
.OrderByDescending(x => x.Id)
7778
.Select(x => new CheckPointSummary(
7879
x.Id,
7980
x.StartDate,
8081
x.DoctorReview.Driver.FirstName + " " + x.DoctorReview.Driver.LastName,
8182
x.MechanicHandover != null ? x.MechanicHandover.Car.Model : "",
8283
x.Stage,
8384
x.Status))
84-
.OrderByDescending(x => x.Id)
8585
.ToListAsync();
8686

8787
return checkPoints;

0 commit comments

Comments
 (0)