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: only pass data from SaveOptions during that query #7886

Conversation

imnotjames
Copy link
Contributor

@imnotjames imnotjames commented Jul 11, 2021

Description of change

this resets the data passed from SaveOptions to QueryRunner
once the persistence operation has completed

fixes #4146

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run lint passes with this change
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions explained in CONTRIBUTING.md

this resets the `data` passed from `SaveOptions` to `QueryRunner`
once the persistence operation has completed
@imnotjames imnotjames force-pushed the fix/4146/queryrunner-data-reset-afterwards branch from 8882c4d to 6bbfacb Compare July 11, 2021 05:09
@imnotjames imnotjames merged commit 1de2e13 into typeorm:master Jul 11, 2021
@imnotjames imnotjames deleted the fix/4146/queryrunner-data-reset-afterwards branch July 11, 2021 06:16
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.

[Question] SaveOptions.data persists between queries - by design?
1 participant