diff --git a/packages/network/src/api/inspection/mappers.ts b/packages/network/src/api/inspection/mappers.ts index eb07b362..41e2a0e2 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 7af35f3b..e1df6dea 100644 --- a/packages/network/src/api/models/inspection.ts +++ b/packages/network/src/api/models/inspection.ts @@ -78,6 +78,6 @@ export interface ApiInspectionPost { } export interface ApiInspectionsSortRequest { - sort_by_property?: string; - sort_drder?: SortOrder; + order_by?: string; + pagination_order?: SortOrder; }