We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6c9248 commit 95ccbaeCopy full SHA for 95ccbae
src/endpoints/multi-location-inventories.js
@@ -5,11 +5,10 @@ import InventoryLocationsEndpoint from './mli-locations'
5
class MultiLocationInventories {
6
constructor(endpoint) {
7
const config = { ...endpoint }
8
- config.headers = {
9
- ...config.headers,
10
- 'ep-inventories-multi-location': true
11
- }
12
- this.request = new RequestFactory(endpoint)
+
+ config.headers['ep-inventories-multi-location'] = true
+ this.request = new RequestFactory(config)
13
14
this.Locations = new InventoryLocationsEndpoint(config)
15
0 commit comments