fix: register SyntheticResultProjector in AiJobModule providers
Some checks failed
Deploy API Server / build-and-unit (push) Successful in 34s
Deploy API Server / current-integration (push) Successful in 29s
Deploy API Server / backward-compat (push) Successful in 0s
Deploy API Server / m-ai-03-synthetic-e2e (push) Failing after 9s
Deploy API Server / deploy (push) Has been skipped

RESULT_PROJECTORS factory injects SyntheticResultProjector but it wasn't
registered as a provider, causing NestJS DI resolution to fail at module
compilation. Added it to providers array — has zero dependencies, so just
needs registration.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
wangdl 2026-06-21 11:56:50 +08:00
parent c2d838ed96
commit 7f326b078a

View File

@ -30,6 +30,7 @@ import { SyntheticRegistrationService } from './synthetic-registration.service';
AiJobExecutionEngineImpl,
ProjectionExecutor,
SyntheticRegistrationService,
SyntheticResultProjector,
{ provide: RESULT_PROJECTORS, useFactory: (p: SyntheticResultProjector) => p, inject: [SyntheticResultProjector], multi: true } as any,
{ provide: AI_JOB_EXECUTION_ENGINE, useExisting: AiJobExecutionEngineImpl },
],