1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00

Fixed sort in HistoryRepository

This commit is contained in:
Mark McDowall 2020-04-09 22:58:42 -07:00
parent b5e734b9e5
commit f0ca636654

View File

@ -65,9 +65,7 @@ public List<History> GetBySeries(int seriesId, HistoryEventType? eventType)
query.AndWhere(h => h.EventType == eventType);
}
query.OrderByDescending(h => h.Date);
return query;
return query.OrderByDescending(h => h.Date).ToList();
}
public List<History> GetBySeason(int seriesId, int seasonNumber, HistoryEventType? eventType)