washday-sdk 0.0.19 → 0.0.21
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/dist/api/stores/put.js +1 -1
- package/package.json +1 -1
- package/src/api/stores/put.ts +1 -1
package/dist/api/stores/put.js
CHANGED
|
@@ -25,7 +25,7 @@ const updateStoreById = function (storeId, data) {
|
|
|
25
25
|
const config = {
|
|
26
26
|
headers: { Authorization: `Bearer ${this.apiToken}` }
|
|
27
27
|
};
|
|
28
|
-
const response = yield axiosInstance_1.default.put(`${GET_SET_STORES}/${storeId}`, {
|
|
28
|
+
const response = yield axiosInstance_1.default.put(`${GET_SET_STORES}/${storeId}`, { data, config });
|
|
29
29
|
return ((_a = response.data) === null || _a === void 0 ? void 0 : _a.data) || {};
|
|
30
30
|
}
|
|
31
31
|
catch (error) {
|
package/package.json
CHANGED
package/src/api/stores/put.ts
CHANGED
|
@@ -12,7 +12,7 @@ export const updateStoreById = async function (this: WashdayClientInstance, stor
|
|
|
12
12
|
const config = {
|
|
13
13
|
headers: { Authorization: `Bearer ${this.apiToken}` }
|
|
14
14
|
};
|
|
15
|
-
const response = await axiosInstance.put(`${GET_SET_STORES}/${storeId}`, {
|
|
15
|
+
const response = await axiosInstance.put(`${GET_SET_STORES}/${storeId}`, { data, config });
|
|
16
16
|
return response.data?.data || {}
|
|
17
17
|
} catch (error) {
|
|
18
18
|
console.error('Error fetching getStoreById:', error);
|