washday-sdk 1.1.8 → 1.1.9
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.
|
@@ -30,7 +30,7 @@ export const bulkCreate = function (storeId, data) {
|
|
|
30
30
|
const config = {
|
|
31
31
|
headers: { Authorization: `Bearer ${this.apiToken}`, 'Content-Type': false }
|
|
32
32
|
};
|
|
33
|
-
const response = yield axiosInstance.post(`${GET_SET_CUSTOMERS}/bulk`,
|
|
33
|
+
const response = yield axiosInstance.post(`${GET_SET_CUSTOMERS}/bulk`, data, config);
|
|
34
34
|
return response.data || {};
|
|
35
35
|
}
|
|
36
36
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -40,10 +40,7 @@ export const bulkCreate = async function (this: WashdayClientInstance, storeId:
|
|
|
40
40
|
const config = {
|
|
41
41
|
headers: { Authorization: `Bearer ${this.apiToken}`, 'Content-Type': false }
|
|
42
42
|
};
|
|
43
|
-
const response = await axiosInstance.post(`${GET_SET_CUSTOMERS}/bulk`,
|
|
44
|
-
...data,
|
|
45
|
-
createdIn: storeId
|
|
46
|
-
}, config);
|
|
43
|
+
const response = await axiosInstance.post(`${GET_SET_CUSTOMERS}/bulk`, data, config);
|
|
47
44
|
return response.data || {}
|
|
48
45
|
} catch (error) {
|
|
49
46
|
console.error('Error fetching customers bulkCreate:', error);
|