fix(iam): 修复 TS 编译错误、ESM 依赖注入与身份头读取
P1 端到端验证中发现 IAM 服务存在 14 个 TS 编译错误与运行时 DI 失败: - 移除 typeorm/ioredis/kafkajs 依赖(IAM 用 Drizzle) - health.controller.ts 改用 db.execute(sql SELECT 1) 校验连接 - lifecycle.service.ts 简化为只关闭 Drizzle 连接池 - Drizzle API 修正:r.roles -> r.iam_roles,.in() -> inArray() - ESM 模式下 DI 必须显式 @Inject(IamRepository)(参考 classes 黄金模板) - iam.controller.ts 直接读 req.headers[x-user-id],不依赖未注册的 AuthMiddleware - health.module.ts 补 .js 后缀 - package.json 补 @types/express 验证:register -> JWT -> Gateway /iam/me 200 -> /classes CRUD 200
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -33,7 +33,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
container: node:22-alpine
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.inputs.commit_sha || github.ref }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user