Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit ad22820

Browse files
committed
fix(lidarr): (history) sort list by date descending
[skip ci]
1 parent b55f625 commit ad22820

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/modules/lidarr/core/api/api.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -356,13 +356,13 @@ class LidarrAPI {
356356

357357
Future<List<LidarrHistoryData>> getHistory(
358358
{String sortKey = 'date',
359-
String sortDir = 'desc',
359+
String sortDir = 'descending',
360360
int pageSize = 250}) async {
361361
try {
362362
Response response = await _dio.get('history', queryParameters: {
363363
'sortKey': sortKey,
364364
'pageSize': pageSize,
365-
'sortDir': sortDir,
365+
'sortDirection': sortDir,
366366
});
367367
List<LidarrHistoryData> _entries = [];
368368
for (var entry in response.data['records']) {

0 commit comments

Comments
 (0)