Skip to content

Commit

Permalink
fix(server): reform url for pdf generation and download
Browse files Browse the repository at this point in the history
fix #661
  • Loading branch information
AmruthPillai committed Mar 12, 2022
1 parent c8c5916 commit 6d55f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/printer/printer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class PrinterService implements OnModuleInit, OnModuleDestroy {
const pdf = await PDFDocument.create();
const directory = join(__dirname, '..', 'assets/exports');
const filename = `RxResume_PDFExport_${nanoid()}.pdf`;
const publicUrl = `/api/exports/${filename}`;
const publicUrl = `/assets/exports/${filename}`;

for (let index = 0; index < resumePages.length; index++) {
await page.evaluate((page) => (document.body.innerHTML = page.innerHTML), resumePages[index]);
Expand Down

0 comments on commit 6d55f91

Please sign in to comment.