Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/actions/cached-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export const clearAllCaches = () => {
console.log("✅ All API caches cleared");
};

export default {
const cachedAPI = {
courses: coursesAPI,
books: booksAPI,
spaces: spacesAPI,
Expand All @@ -256,3 +256,5 @@ export default {
search: searchAPI,
clearAll: clearAllCaches,
};

export default cachedAPI;
4 changes: 3 additions & 1 deletion lib/utils/cloudinaryUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,13 @@ export const formatFileSize = (bytes) => {
return Math.round((bytes / Math.pow(k, i)) * 100) / 100 + " " + sizes[i];
};

export default {
const cloudinaryUpload = {
uploadToCloudinary,
uploadWithProgress,
uploadMultipleFiles,
validateFile,
getResourceType,
formatFileSize,
};

export default cloudinaryUpload;