fix: replace PDF with HTML report (fontkit unavailable)
This commit is contained in:
@@ -306,11 +306,11 @@ export class AssessmentController {
|
||||
}
|
||||
|
||||
@Get(':id/export/pdf')
|
||||
@ApiOperation({ summary: 'Export assessment to PDF' })
|
||||
@ApiOperation({ summary: 'Export assessment to HTML report' })
|
||||
async exportPdf(@Param('id') sessionId: string) {
|
||||
const buffer = await this.exportService.exportToPdf(sessionId);
|
||||
return {
|
||||
filename: `assessment-${sessionId}.pdf`,
|
||||
filename: `assessment-${sessionId}.html`,
|
||||
buffer: buffer.toString('base64'),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user