A
A
Agnik2021-01-25 18:30:17
PostgreSQL
Agnik, 2021-01-25 18:30:17

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 question

Ask a Question

731 491 924 answers to any question