Skip to content

Commit

Permalink
Merge pull request #32 from ekkolon/fix-orders-invalid-req-method
Browse files Browse the repository at this point in the history
fix(orders): refactor invalid `getOrders` method signature
  • Loading branch information
ekkolon authored Oct 9, 2023
2 parents f460150 + f5fb8db commit de85a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/orders/orders-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class OrdersAPI extends BaseAPI {
*/
getOrders(filter: SearchOrdersRequest = {}): Promise<SearchOrdersResponse> {
const url = getOrdersSearchURL();
return this.httpClient.post<SearchOrdersResponse, SearchOrdersRequest>(url, filter);
return this.httpClient.get<SearchOrdersResponse>(url, { params: filter });
}

/**
Expand Down

0 comments on commit de85a2c

Please sign in to comment.