it0/packages/shared/database/src
hailin 3cb9ebd407 fix: release QueryRunner connections to prevent pool exhaustion
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>
2026-02-23 15:55:06 -08:00
..
migrations fix: add missing columns to tenant schema template (runbook.updated_at, contact.role) 2026-02-22 00:18:46 -08:00
seeds Initial commit: IT0 AI-powered server cluster operations platform 2026-02-08 22:54:37 -08:00
data-source.ts Initial commit: IT0 AI-powered server cluster operations platform 2026-02-08 22:54:37 -08:00
database.module.ts fix: add SnakeNamingStrategy for TypeORM to match snake_case DB columns 2026-02-22 00:10:08 -08:00
index.ts fix: add SnakeNamingStrategy for TypeORM to match snake_case DB columns 2026-02-22 00:10:08 -08:00
run-migrations.ts Initial commit: IT0 AI-powered server cluster operations platform 2026-02-08 22:54:37 -08:00
snake-naming.strategy.ts fix: add SnakeNamingStrategy for TypeORM to match snake_case DB columns 2026-02-22 00:10:08 -08:00
tenant-aware.repository.ts fix: release QueryRunner connections to prevent pool exhaustion 2026-02-23 15:55:06 -08:00
tenant-context.middleware.ts feat: 完成 iAgent App 三大功能 + 修复租户上下文 2026-02-23 01:10:52 -08:00
tenant-provisioning.service.ts fix: remove SQL comment lines before splitting to prevent filtering CREATE TABLE statements 2026-02-22 03:26:37 -08:00