wang bao chen 4 mesiacov pred
rodič
commit
6aca21c805

+ 1 - 1
DutyApp/ViewModels/DailyDutyRecordViewModel.cs

@@ -150,7 +150,7 @@ namespace DutyApp.ViewModels
             var dailyDuty = await _dutyContext.DailyDutyRecords.
                 Include(x => x.Picture)
                 .Where(x => x.DutyDate == maxDay)
-                .OrderBy(x => x.RecordId)
+                .OrderBy(x => x.Index)
                 .ToListAsync();
 
             if (dailyDuty.Count == 0)