Skip to content
Open
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
8 changes: 6 additions & 2 deletions apps/web/helpers/cover-image.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,14 +266,18 @@ export const handleCoverImageChange = async (

if (uploadConfig.isUserAsset) {
return {
cover_image_url: uploadedUrl,
cover_image: uploadedUrl,
};
} else {
return null;
}
}

return null;
// External/uploaded asset (e.g., Unsplash URL, pre-uploaded asset)
// Return the URL to be saved in the backend
return {
cover_image: newImage,
};
};

/**
Expand Down
Loading