-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
I have a problem with the relationship. @ManyToOne #191
Comments
When searching for a token identifier equal to 3, and further loading the user relationship, there is such a request
|
that was a bug. fixed and released in |
Thank you very much, everything works as expected. So many hours has killed in order to understand what's the error |
ahh sorry about that |
There are 2 models
The database data is stored as it should, but when I try to authenticate the user on the token, a promise Returns the void
let token: Token = await Token.__repository.findOne({token: request.get<string>('token')});
...let user: User = await token.user;
user == undefined => trueThis is carried out such a request.
It is not true. Instead the user id is inserted record id of the found token.
I can not understand where I was wrong
The text was updated successfully, but these errors were encountered: