Skip to content

Commit e3aac70

Browse files
fix: MLI endpoint header (#32)
1 parent e6c9248 commit e3aac70

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/endpoints/multi-location-inventories.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ import InventoryLocationsEndpoint from './mli-locations'
55
class MultiLocationInventories {
66
constructor(endpoint) {
77
const config = { ...endpoint }
8-
config.headers = {
9-
...config.headers,
10-
'ep-inventories-multi-location': true
11-
}
12-
this.request = new RequestFactory(endpoint)
8+
9+
config.headers['ep-inventories-multi-location'] = true
10+
11+
this.request = new RequestFactory(config)
1312

1413
this.Locations = new InventoryLocationsEndpoint(config)
1514

0 commit comments

Comments
 (0)