Skip to content

Commit

Permalink
pass along the opts prop without accessing
Browse files Browse the repository at this point in the history
  • Loading branch information
nnsier committed Jan 31, 2024
1 parent 932f274 commit 05ead77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/customers.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ class CustomersApi extends Api {
return r && r.body
}

async updateCustomer (customer) {
async updateCustomer (customer, opts) {
const request = this.pick(customer, 'id', 'name', 'slug', 'description', 'version', 'externalOrg', 'externalKey', 'customerCategory')
const r = await this.client.put(`/customers/${request.id}`, request)
const r = await this.client.put(`/customers/${request.id}`, request, opts)
return r && r.body
}

Expand Down
4 changes: 2 additions & 2 deletions api/products.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ class ProductsApi extends Api {
return r && r.body
}

async updateProduct (product) {
async updateProduct (product, opts) {
const request = this.pick(product, 'id', 'productCode', 'displayName', 'description', 'version', 'externalOrg', 'externalKey', 'productCategory')
const r = await this.client.put(`/products/${request.id}`, request)
const r = await this.client.put(`/products/${request.id}`, request, opts)
return r && r.body
}

Expand Down

0 comments on commit 05ead77

Please sign in to comment.