Commit 1d05c3c
committed
fix(dashboard): correct API call for fetching recent headlines
Moves the `sortBy` and `sortOrder` parameters from the `query` map to the dedicated named arguments in the `readAllBy` method call within the `DashboardBloc`.
This aligns the call with the repository's API contract and resolves the `BadRequestException` thrown by the `HtDataInMemory` client, which was incorrectly receiving sorting parameters as filter keys.1 parent b517c0a commit 1d05c3c
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments