Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
fix: listInventorySupply to use GET method instead of POST
Browse files Browse the repository at this point in the history
Closes #368
  • Loading branch information
moltar committed May 5, 2021
1 parent 4ee1981 commit d0176f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sections/fulfillment-inventory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class FulfillmentInventory {
async listInventorySupply(
parameters: ListInventorySupplyRequestParameters,
): Promise<[InventorySupplyList, RequestMeta]> {
const [response, meta] = await this.httpClient.request('POST', {
const [response, meta] = await this.httpClient.request('GET', {
resource: Resource.FulfilmentInventory,
version: FULFILLMENT_INVENTORY_API_VERSION,
action: 'ListInventorySupply',
Expand All @@ -133,7 +133,7 @@ export class FulfillmentInventory {
async listInventorySupplyByNextToken(
nextToken: NextToken<'ListInventorySupply'>,
): Promise<[InventorySupplyListByNextToken, RequestMeta]> {
const [response, meta] = await this.httpClient.request('POST', {
const [response, meta] = await this.httpClient.request('GET', {
resource: Resource.FulfilmentInventory,
version: FULFILLMENT_INVENTORY_API_VERSION,
action: 'ListInventorySupplyByNextToken',
Expand Down

0 comments on commit d0176f9

Please sign in to comment.