wangdl bbac2e358c
Some checks failed
Deploy API Server / build-and-unit (push) Successful in 35s
Deploy API Server / current-integration (push) Successful in 30s
Deploy API Server / backward-compat (push) Successful in 0s
Deploy API Server / m-ai-03-synthetic-e2e (push) Failing after 10s
Deploy API Server / deploy (push) Has been skipped
fix: use useFactory returning array + Array.isArray guard for RESULT_PROJECTORS
Two changes to fix 'projectors is not iterable' TypeError:

1. ai-job.module.ts: Replace useClass+multi:true with useFactory that
   explicitly returns [p] — avoids NestJS multi-provider array-wrapping
   ambiguity. SyntheticResultProjector back as standalone provider.

2. projection-executor.service.ts: Replace truthiness check with
   Array.isArray() guard for defense-in-depth.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-21 12:16:40 +08:00
..