Skip to content

Commit

Permalink
fix(lidarr): (history) sort list by date descending
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
JagandeepBrar committed Aug 6, 2022
1 parent b55f625 commit ad22820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/modules/lidarr/core/api/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -356,13 +356,13 @@ class LidarrAPI {

Future<List<LidarrHistoryData>> getHistory(
{String sortKey = 'date',
String sortDir = 'desc',
String sortDir = 'descending',
int pageSize = 250}) async {
try {
Response response = await _dio.get('history', queryParameters: {
'sortKey': sortKey,
'pageSize': pageSize,
'sortDir': sortDir,
'sortDirection': sortDir,
});
List<LidarrHistoryData> _entries = [];
for (var entry in response.data['records']) {
Expand Down

0 comments on commit ad22820

Please sign in to comment.