Skip to content

fix: address review feedback for Cloudinary note cleanup (#331)#413

Open
Deepthii7 wants to merge 2 commits into
MRIARC-08:mainfrom
Deepthii7:fix-note-cloudinary-cleanup-v2
Open

fix: address review feedback for Cloudinary note cleanup (#331)#413
Deepthii7 wants to merge 2 commits into
MRIARC-08:mainfrom
Deepthii7:fix-note-cloudinary-cleanup-v2

Conversation

@Deepthii7

Copy link
Copy Markdown

Closes #331

Summary

This PR addresses the review feedback for the Cloudinary note cleanup feature.

Changes made

  • Added cloudinaryPublicId to the Note schema
  • Added a Prisma migration for the new field
  • Stored Cloudinary public_id during note upload
  • Updated repository methods and types
  • Updated note deletion flow to soft-delete the note before Cloudinary cleanup
  • Added error handling around Cloudinary asset deletion

Notes

This change prevents a scenario where a Cloudinary asset is deleted before the database update succeeds, which could leave a visible note pointing to a missing asset.

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Adarsh's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Deleting a note does not remove its Cloudinary asset

1 participant