Skip to content

Commit

Permalink
fix(puppeteer.utility.ts): fix format error with Puppeteer
Browse files Browse the repository at this point in the history
Replace 'A4' with 'a4' format for puppeteer

closes #629
  • Loading branch information
alejandrosaenz117 committed Mar 1, 2021
1 parent b53e499 commit daaf8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/puppeteer.utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const generateReport = async (req: UserRequest, res: Response) => {
localStorage.setItem('AUTH_TOKEN', token);
}, jwtToken);
await page.goto(url, { waitUntil: 'networkidle0' });
await page.pdf({ path: filePath, format: 'A4' });
await page.pdf({ path: filePath, format: 'a4' });
await browser.close();
const file = fs.createReadStream(filePath);
const stat = fs.statSync(filePath);
Expand Down

0 comments on commit daaf8d2

Please sign in to comment.