washday-sdk 0.0.148 → 0.0.149
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.
- package/package.json +1 -1
- package/src/api/products/post.ts +2 -2
package/package.json
CHANGED
package/src/api/products/post.ts
CHANGED
|
@@ -56,14 +56,14 @@ export const createProductSupply = async function (this: WashdayClientInstance,
|
|
|
56
56
|
export const bulkCreate = async function (this: WashdayClientInstance, data: {
|
|
57
57
|
section: string;
|
|
58
58
|
store: string;
|
|
59
|
-
|
|
59
|
+
csvFile: any;
|
|
60
60
|
}): Promise<any> {
|
|
61
61
|
try {
|
|
62
62
|
const config = {
|
|
63
63
|
headers: { Authorization: `Bearer ${this.apiToken}`, 'Content-Type': false }
|
|
64
64
|
};
|
|
65
65
|
const response = await axiosInstance.post(`${GET_SET_PRODUCTS}/${data.store}/bulk`, data, config);
|
|
66
|
-
return response.data || {}
|
|
66
|
+
return response.data || {};
|
|
67
67
|
} catch (error) {
|
|
68
68
|
console.error('Error fetching products bulkCreate:', error);
|
|
69
69
|
throw error;
|