diff --git a/lib/actions/cached-api.js b/lib/actions/cached-api.js index 57884e1f..cd6b6598 100644 --- a/lib/actions/cached-api.js +++ b/lib/actions/cached-api.js @@ -247,7 +247,7 @@ export const clearAllCaches = () => { console.log("✅ All API caches cleared"); }; -export default { +const cachedAPI = { courses: coursesAPI, books: booksAPI, spaces: spacesAPI, @@ -256,3 +256,5 @@ export default { search: searchAPI, clearAll: clearAllCaches, }; + +export default cachedAPI; diff --git a/lib/utils/cloudinaryUpload.js b/lib/utils/cloudinaryUpload.js index 8c839f0e..552b2b3b 100644 --- a/lib/utils/cloudinaryUpload.js +++ b/lib/utils/cloudinaryUpload.js @@ -181,7 +181,7 @@ export const formatFileSize = (bytes) => { return Math.round((bytes / Math.pow(k, i)) * 100) / 100 + " " + sizes[i]; }; -export default { +const cloudinaryUpload = { uploadToCloudinary, uploadWithProgress, uploadMultipleFiles, @@ -189,3 +189,5 @@ export default { getResourceType, formatFileSize, }; + +export default cloudinaryUpload;