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

revert: "fix: connection Reuse is broken in a Lambda environment: (#4804)" #5486

Conversation

0xMillz
Copy link
Contributor

@0xMillz 0xMillz commented Feb 6, 2020

This reverts commit 7962036

The original PR came about from this issue: #3427.
The author of the original issue has since realized the root problem they were facing was unrelated: #3427 (comment)

It seems this "monkeypatch" is causing more problems than any workaround it might have provided is worth. The conditional metadata.target.name === target.name in the findMetadata function is not a thorough-enough comparison. Function names are often the same in large codebases and especially in minified code (as @Benjamin-Dobell points out #4804 (comment)). This results in false positives returned from this.entityMetadatas.find() depending on the order of the EntityMetadata in the array.

Closes:
#4958 TypeORM 0.2.20 getRepository returns results from another Repo.
#4967 0.2.20 release breaks entity repo resolving mechanism

@pleerock
Copy link
Member

ahhh... okay...

@pleerock pleerock merged commit e3be9e3 into typeorm:master Feb 13, 2020
@pleerock
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.

None yet

3 participants