fix encode / decode by type to support branded ids#35
Open
rares-lupascu wants to merge 1 commit intobenjamin658:masterfrom
Open
fix encode / decode by type to support branded ids#35rares-lupascu wants to merge 1 commit intobenjamin658:masterfrom
rares-lupascu wants to merge 1 commit intobenjamin658:masterfrom
Conversation
rares-lupascu
commented
Jul 17, 2021
- for some reason decodeByType was handling objects and dates the same
- in my scenario the branded id was an abject that needed to be treated differently than a date
- I added a check for the existence of the toString method
Owner
|
Thanks for your contribution. |
Author
|
i would but i was expecting tests to work locally i ran so how do I check my tests before pushing them? thanks |
Owner
|
What is the exact error of the testing? |
Author
|
Author
|
can I also ask the reason for using instead of |
Owner
|
I believe it's a TypeORM issue: typeorm/typeorm#5733 Please remove the |
Owner
It is just a different implementation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.