File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -421,8 +421,9 @@ export class ReportsService {
421421 { field : 'summary' , value : report . summary } ,
422422 { field : 'confidence' , value : report . confidence } ,
423423 { field : 'status' , value : report . status } ,
424- { field : 'missingInformation' , value : report . missingInformation } ,
425- { field : 'isMedicalReport' , value : report . isMedicalReport } ,
424+ { field : 'missingInformation' , value : report . missingInformation || [ ] } ,
425+ { field : 'isMedicalReport' , value : report . isMedicalReport || false } ,
426+ { field : 'errorMessage' , value : report . errorMessage || '' } ,
426427 { field : 'updatedAt' , value : report . updatedAt } ,
427428 ] ;
428429
@@ -494,7 +495,11 @@ export class ReportsService {
494495 }
495496 }
496497
497- throw new InternalServerErrorException ( `Failed to update report with ID ${ report . id } ` ) ;
498+ throw new InternalServerErrorException (
499+ `Failed to update report with ID ${ report . id } ${
500+ error instanceof Error ? error . message : ''
501+ } `,
502+ ) ;
498503 }
499504 }
500505
You can’t perform that action at this time.
0 commit comments