Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
keshav2010 committed Oct 20, 2023
1 parent 8017603 commit a843c02
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cjs/services/order-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ var OrderService = (function (_super) {
if (!queryParams.state) {
queryParams.state = "active";
}
return [4, this.fetchApi("/".concat(vendorId, "/orders"), __assign(__assign({}, queryParams), { state: "active" }), __assign(__assign({}, options), { method: "GET" }))];
return [4, this.fetchApi("/".concat(vendorId, "/orders"), __assign({}, queryParams), __assign(__assign({}, options), { method: "GET" }))];
case 1:
response = _a.sent();
return [2, response];
Expand Down
2 changes: 1 addition & 1 deletion lib/esm/services/order-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class OrderService extends Service {
if (!queryParams.state) {
queryParams.state = "active";
}
const response = yield this.fetchApi(`/${vendorId}/orders`, Object.assign(Object.assign({}, queryParams), { state: "active" }), Object.assign(Object.assign({}, options), { method: "GET" }));
const response = yield this.fetchApi(`/${vendorId}/orders`, Object.assign({}, queryParams), Object.assign(Object.assign({}, options), { method: "GET" }));
return response;
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/services/order-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class OrderService extends Service {
pagination: IPaginationMetadata;
}>(
`/${vendorId}/orders`,
{ ...queryParams, state: "active" },
{ ...queryParams },
{
...options,
method: "GET",
Expand Down

0 comments on commit a843c02

Please sign in to comment.