@hubs101/js-api-skd-client 1.0.10450 → 1.0.10451
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/lib/api/event/index.js +1 -1
- package/package.json +1 -1
package/lib/api/event/index.js
CHANGED
|
@@ -652,7 +652,7 @@ const _fetchMediaFileDetails = (basePath, token, accountId, filepath) => __await
|
|
|
652
652
|
exports._fetchMediaFileDetails = _fetchMediaFileDetails;
|
|
653
653
|
const _uploadImageToFolder = (basePath, token, accountId, folderPath, file) => __awaiter(void 0, void 0, void 0, function* () {
|
|
654
654
|
const base = (0, base_1.getBasePath)(basePath);
|
|
655
|
-
const { data } = yield (0, api_1.
|
|
655
|
+
const { data } = yield (0, api_1.postFilesAndDataRequest)(`${base.ACCOUNTS}/media/${accountId}/file?path=${folderPath}`, {}, file, token);
|
|
656
656
|
return (data === null || data === void 0 ? void 0 : data.data) || data;
|
|
657
657
|
});
|
|
658
658
|
exports._uploadImageToFolder = _uploadImageToFolder;
|