You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #7839. It's deprecating get connections without a specific reason.
We are creating multiple connections at runtime and after a while we must iterate over all connections, without having a reference to all of them so it's really needed.
As a plus Object.values(<Map>) returns always an empty array
The entirety of the connection manager is deprecated. As such, having a location where there's a central repository of connections in a list is deprecated.
I'll merge this in and make it clearer in a more in depth deprecation message.
Issue Description
Related to #7839. It's deprecating
get connections
without a specific reason.We are creating multiple connections at runtime and after a while we must iterate over all connections, without having a reference to all of them so it's really needed.
As a plus
Object.values(<Map>)
returns always an empty arraytypeorm/src/connection/ConnectionManager.ts
Line 17 in f7eb46d
Expected Behavior
ConnectionManager.connections should return the list of active connections
Actual Behavior
Returns an empty array
Steps to Reproduce
Are you willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: