washday-sdk 0.0.39 → 0.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,7 @@ const bulkUpdate = function (storeId, data) {
22
22
  return __awaiter(this, void 0, void 0, function* () {
23
23
  try {
24
24
  const config = {
25
- headers: { Authorization: `Bearer ${this.apiToken}` }
25
+ headers: { Authorization: `Bearer ${this.apiToken}`, 'Content-Type': false }
26
26
  };
27
27
  const response = yield axiosInstance_1.default.put(`${GET_SET_PRODUCTS}/${storeId}/bulk`, data, config);
28
28
  return response.data || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -10,7 +10,7 @@ const REQUEST_PARAMS = {
10
10
  export const bulkUpdate = async function (this: WashdayClientInstance, storeId: string, data: IStore): Promise<any> {
11
11
  try {
12
12
  const config = {
13
- headers: { Authorization: `Bearer ${this.apiToken}` }
13
+ headers: { Authorization: `Bearer ${this.apiToken}`, 'Content-Type': false }
14
14
  };
15
15
  const response = await axiosInstance.put(`${GET_SET_PRODUCTS}/${storeId}/bulk`, data, config);
16
16
  return response.data || {}