it0/packages
hailin 5b6e7ee363 fix: add TenantContextMiddleware to initialize tenant context from X-Tenant-Id header
All services using TenantAwareRepository require AsyncLocalStorage tenant
context to set the correct PostgreSQL search_path. The middleware reads
X-Tenant-Id from request headers and wraps the request with
TenantContextService.run(), using schema naming convention it0_t_{tenantId}.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 23:58:01 -08:00
..
gateway fix: per-service JWT in Kong, fix auth-service tenant-aware repos 2026-02-21 23:31:32 -08:00
services fix: remove AuthGuard('jwt') from all service controllers 2026-02-21 23:42:37 -08:00
shared fix: add TenantContextMiddleware to initialize tenant context from X-Tenant-Id header 2026-02-21 23:58:01 -08:00