Answer the question
In order to leave comments, you need to log in
Why does typeorm connect to the wrong database during a request?
I use nestjs + typeorm + typeorm crud
For some reason, the connection in app.module.ts is successful (for example, to the mydaatabse database),
but when calling the controller method (for example, get users) it tries to connect to the `postgres` database.
Some nonsense...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question