fix: return 'id' instead of 'jobId' in POST /imports response
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 46s
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 46s
iOS ImportStatusResponse expects 'id' field. The mismatch caused DecodingError.keyNotFound on the client side. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
aef8e2a416
commit
43293a48e6
@ -49,7 +49,7 @@ export class DocumentImportService {
|
||||
});
|
||||
this.logger.log(`Job enqueued: ${job.id}`);
|
||||
|
||||
return { jobId: job.id, status: 'queued' };
|
||||
return { id: job.id, status: 'queued' };
|
||||
} finally {
|
||||
await this.redis.unlock(lockKey, lockToken);
|
||||
}
|
||||
|
||||
@ -96,7 +96,7 @@ export class KnowledgeSourceService {
|
||||
fileName: source.originalFilename ?? source.title,
|
||||
});
|
||||
|
||||
return { jobId: importJob.id, status: 'queued' };
|
||||
return { id: importJob.id, status: 'queued' };
|
||||
}
|
||||
|
||||
async updateParseStatus(id: string, parseStatus: string, data?: any) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user