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 #36

Closed
wants to merge 22 commits into from

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 Comments Updated (UTC)
fresco ❌ Failed (Inspect) Dec 4, 2023 11:57am

@mrkarimoff mrkarimoff closed this Dec 4, 2023
@mrkarimoff mrkarimoff reopened this Dec 4, 2023
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