Fixed UX Design's Script, added some directory changes for Walmart. Notes for Anthology
This commit is contained in:
@ -14,7 +14,7 @@ const getAllGroups = async (num) => {
|
||||
|
||||
await axios({
|
||||
method: 'get',
|
||||
url: `https://api.northpass.com/v2/courses?page=${page}&limit=100`,
|
||||
url: `https://api2.northpass.com/v2/courses?page=${page}&limit=100`,
|
||||
headers: {
|
||||
'accept': '*/*',
|
||||
'x-api-key': apiKey,
|
||||
@ -61,6 +61,7 @@ async function courseOverview(id, i, num) {
|
||||
console.log(course)
|
||||
if (course.includes("undefined")) {
|
||||
console.log("Error - Undefined UUID. Possibly end of list. Exiting.")
|
||||
await browser.close();
|
||||
} else {
|
||||
await page.setViewport({ width:390, height:844 })
|
||||
await page.goto(course, {
|
||||
|
||||
Reference in New Issue
Block a user