From 05ead77ab8a0e60ab0593a173f551096128c124e Mon Sep 17 00:00:00 2001 From: Nathan Sierra Date: Wed, 31 Jan 2024 13:33:48 -0500 Subject: [PATCH] pass along the opts prop without accessing --- api/customers.js | 4 ++-- api/products.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/customers.js b/api/customers.js index b5f30f2..61e79a5 100644 --- a/api/customers.js +++ b/api/customers.js @@ -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 } diff --git a/api/products.js b/api/products.js index 56aa0dc..2fbe295 100644 --- a/api/products.js +++ b/api/products.js @@ -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 }