diff --git a/src/container-registrations.const.ts b/src/container-registrations.const.ts index ed7e841..8e82e2f 100644 --- a/src/container-registrations.const.ts +++ b/src/container-registrations.const.ts @@ -7,4 +7,4 @@ import { ConnectionManager } from 'typeorm'; * We need to set imported TypeORM classes before requesting them, otherwise we * would receive a "ServiceNotFoundError" above TypeDI 0.9.1 from the decorators. */ -Container.set({ id: ConnectionManager, type: ConnectionManager }); +Container.set({ id: ConnectionManager, type: ConnectionManager, global: true });