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

Remove failed DB record even when using SoftDeletes #3142

Merged
merged 2 commits into from
Jan 5, 2023

Conversation

Pilskalns
Copy link
Contributor

This is a tiny improvement on top of #3139. Basically, on the backtrack scenario, the failed DB record should be removed even when using SoftDeletes (i.e. custom Media model).

SoftDeletes are for intended delete but keep in the trashcan scenario. In this specific case, it is cleaning up after a failure.

@freekmurze
Copy link
Member

Could you add a test for this?

@Pilskalns
Copy link
Contributor Author

Ok, will do.

@freekmurze freekmurze merged commit 644ce1b into spatie:main Jan 5, 2023
@freekmurze
Copy link
Member

Thanks!

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.

2 participants