Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fix: Proper handling of empty assets in deleteProtocols #37

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

mrkarimoff
Copy link
Contributor

This PR fixes a bug in the deleteProtocols function. Previously, if there were no assets to delete, the function stopped execution in the first try/catch block with return. Now, with the fix, we check the case of no assets in the deleteFilesFromUploadThing function, and if true we stop the execution of code to delete assets from Uploadthing.

Copy link

vercel bot commented Dec 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
fresco ✅ Ready (Inspect) Visit Preview Dec 4, 2023 0:11am

Copy link
Member

@jthrilly jthrilly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work!

@jthrilly jthrilly merged commit a3f8390 into main Dec 4, 2023
3 checks passed
@jthrilly jthrilly deleted the fix/protocol-delete branch April 16, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants