- fix firebase functions execution

This commit is contained in:
Amruth Pillai
2020-07-13 23:23:21 +05:30
parent e9bc40afb5
commit 851d6ef020
3 changed files with 113 additions and 176 deletions

View File

@ -23,7 +23,9 @@ exports.printSinglePageResume = functions.https.onCall(
);
}
const browser = await puppeteer.launch({ headless: true });
const browser = await puppeteer.launch({
headless: true,
});
const page = await browser.newPage();
await page.goto(BASE_URL + id);
await timeout(5000);
@ -69,7 +71,9 @@ exports.printMultiPageResume = functions.https.onCall(
);
}
const browser = await puppeteer.launch({ headless: true });
const browser = await puppeteer.launch({
headless: true,
});
const page = await browser.newPage();
await page.goto(BASE_URL + id);
await timeout(5000);