fix(M-AI-05): correct createJob return type — result.id not result.job.id
AiJobCreationService.createJob() returns AiJob entity directly,
not wrapped in { job: {...} }.
Build error: TS2339 Property 'job' does not exist on type AiJob.
Fixed: result.job.id → result.id (lines 135, 141).
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
e63a1332e1
commit
a14f490526
@ -132,13 +132,13 @@ export class FeynmanExecutionRouter {
|
||||
});
|
||||
|
||||
this.logger.log(
|
||||
`Feynman Unified: jobId=${result.job.id} userId=${userId} ` +
|
||||
`Feynman Unified: jobId=${result.id} userId=${userId} ` +
|
||||
`submissionId=${submissionId} idempotencyKey=${idempotencyKey}`,
|
||||
);
|
||||
|
||||
// 8. 返回兼容响应(不删除旧字段,新增可选字段)
|
||||
return {
|
||||
jobId: result.job.id,
|
||||
jobId: result.id,
|
||||
status: 'queued',
|
||||
engineMode: 'unified',
|
||||
lifecycleStatus: 'queued',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user