TenantAwareRepository.getRepository() was calling createQueryRunner() without ever releasing it, causing database connection pool exhaustion. This caused ops-service (and eventually other services) to hang on all API requests once the pool filled up. Replaced getRepository() with withRepository() pattern that wraps operations in try/finally to always release the QueryRunner. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| migrations | ||
| seeds | ||
| data-source.ts | ||
| database.module.ts | ||
| index.ts | ||
| run-migrations.ts | ||
| snake-naming.strategy.ts | ||
| tenant-aware.repository.ts | ||
| tenant-context.middleware.ts | ||
| tenant-provisioning.service.ts | ||