@hubs101/js-api-skd-client 1.0.10461 → 1.0.10463
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 +2 -2
- package/package.json +1 -1
package/lib/api/event/index.js
CHANGED
|
@@ -652,13 +652,13 @@ const _fetchMediaFileDetails = (basePath, token, accountId, filepath) => __await
|
|
|
652
652
|
exports._fetchMediaFileDetails = _fetchMediaFileDetails;
|
|
653
653
|
const _deleteMediaDirectories = (basePath, token, accountId, path, name) => __awaiter(void 0, void 0, void 0, function* () {
|
|
654
654
|
const base = (0, base_1.getBasePath)(basePath);
|
|
655
|
-
const response = yield (0, api_1.deleteRequest)(`${base.ACCOUNTS}/media/${accountId}/directory`, { path, name }, token);
|
|
655
|
+
const response = yield (0, api_1.deleteRequest)(`${base.ACCOUNTS}/media/${accountId}/directory?path=${path}&name=${name}`, { path, name }, token);
|
|
656
656
|
return response;
|
|
657
657
|
});
|
|
658
658
|
exports._deleteMediaDirectories = _deleteMediaDirectories;
|
|
659
659
|
const _deleteMediaDirectoryFiles = (basePath, token, accountId, filepath) => __awaiter(void 0, void 0, void 0, function* () {
|
|
660
660
|
const base = (0, base_1.getBasePath)(basePath);
|
|
661
|
-
const response = yield (0, api_1.deleteRequest)(`${base.ACCOUNTS}/media/${accountId}/file`, { filepath }, token);
|
|
661
|
+
const response = yield (0, api_1.deleteRequest)(`${base.ACCOUNTS}/media/${accountId}/file?filepath=${filepath}`, { filepath }, token);
|
|
662
662
|
return response;
|
|
663
663
|
});
|
|
664
664
|
exports._deleteMediaDirectoryFiles = _deleteMediaDirectoryFiles;
|