fix(server): reform url for pdf generation and download

fix #661
This commit is contained in:
Amruth Pillai 2022-03-12 17:41:16 +01:00
parent c8c5916d02
commit 6d55f917ea
No known key found for this signature in database
GPG Key ID: E3C57DF9B80855AD
1 changed files with 1 additions and 1 deletions

View File

@ -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]);