Commit a3fa64bc5ff85cd9b6eeee77130a2f8c15f5fa8e
1 parent
111a6923
fix: DEFECT-851 ota update create time not sort by created time
Showing
2 changed files
with
4 additions
and
0 deletions
| @@ -5,6 +5,8 @@ export interface GetOtaPackagesParams { | @@ -5,6 +5,8 @@ export interface GetOtaPackagesParams { | ||
| 5 | page: number; | 5 | page: number; |
| 6 | textSearch?: string; | 6 | textSearch?: string; |
| 7 | title?: string; | 7 | title?: string; |
| 8 | + sortOrder?: string; | ||
| 9 | + sortProperty?: string; | ||
| 8 | } | 10 | } |
| 9 | 11 | ||
| 10 | export interface CreateOtaPackagesParams { | 12 | export interface CreateOtaPackagesParams { |
| @@ -22,6 +22,8 @@ | @@ -22,6 +22,8 @@ | ||
| 22 | const data = await getOtaPackagesList({ | 22 | const data = await getOtaPackagesList({ |
| 23 | ...params, | 23 | ...params, |
| 24 | page: params.page - 1, | 24 | page: params.page - 1, |
| 25 | + sortOrder: 'DESC', | ||
| 26 | + sortProperty: 'createdTime', | ||
| 25 | textSearch: params.title, | 27 | textSearch: params.title, |
| 26 | }); | 28 | }); |
| 27 | return { ...data, page: params.page }; | 29 | return { ...data, page: params.page }; |