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

fix(bodies): passing transaction correctly when deleting a body #120

Merged
merged 1 commit into from
Sep 16, 2020

Conversation

serge1peshcoff
Copy link
Member

apparently Model.destroy() expects a transaction as a property of the first argument, not second.
this was causing a timeout of a request when trying to delete a body, I assume this should (in theory) fix the core not responding after deleting a body.

Copy link
Member

@WikiRik WikiRik left a comment

Choose a reason for hiding this comment

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

Sounds good in theory. Did you look into the tests as well? Since they passed earlier with the time out

@serge1peshcoff
Copy link
Member Author

the tests won't catch this, I assume because seems like is how it works:

  • a new transaction starts
  • it never finishes
  • then all actions after it are causing a timeout because of this

and when running tests, each time before each test the DB is nuked and recreated, so this won't happen.
Anyway, the automated tests didn't fail, and it works when I try to do it manually, then it should be okay.

@serge1peshcoff serge1peshcoff merged commit f4f33d1 into master Sep 16, 2020
serge1peshcoff pushed a commit that referenced this pull request Sep 16, 2020
## [1.25.1](1.25.0...1.25.1) (2020-09-16)

### Bug Fixes

* **bodies:** passing transaction correctly when deleting a body ([#120](#120)) ([f4f33d1](f4f33d1))
@serge1peshcoff
Copy link
Member Author

🎉 This PR is included in version 1.25.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@serge1peshcoff serge1peshcoff deleted the fix-deleting-bodies-transaction branch September 16, 2020 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants