diff --git a/packages/network/src/api/inspection/mappers.ts b/packages/network/src/api/inspection/mappers.ts index eb07b362b..41e2a0e2a 100644 --- a/packages/network/src/api/inspection/mappers.ts +++ b/packages/network/src/api/inspection/mappers.ts @@ -697,10 +697,10 @@ export function mapApiInspectionsUrlParamsGet(options: GetInspectionsOptions): s }); } if (options.sort?.sortByProperty) { - params.append('sort_by_property', options.sort.sortByProperty); + params.append('order_by', options.sort.sortByProperty); } if (options.sort?.sortOrder) { - params.append('sort_order', options.sort.sortOrder.toString()); + params.append('pagination_order', options.sort.sortOrder.toString()); } return `${url}${params.toString()}`; } diff --git a/packages/network/src/api/models/inspection.ts b/packages/network/src/api/models/inspection.ts index 7af35f3b7..e6f96cbf0 100644 --- a/packages/network/src/api/models/inspection.ts +++ b/packages/network/src/api/models/inspection.ts @@ -76,8 +76,3 @@ export interface ApiInspectionPost { vehicle?: ApiVehiclePostPatch; damage_severity?: ApiDamageSeverity; } - -export interface ApiInspectionsSortRequest { - sort_by_property?: string; - sort_drder?: SortOrder; -}