fix(booklet): Typo so links are found
This commit is contained in:
parent
32796e4026
commit
212c544eb1
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ export async function fetchBooklet(url: string, downloadPath: string, context: B
|
||||||
// Find link with goodies
|
// Find link with goodies
|
||||||
const link: Locator = page.locator('a').filter({hasText: '/goodies/'});
|
const link: Locator = page.locator('a').filter({hasText: '/goodies/'});
|
||||||
const linkCount: number = await link.count();
|
const linkCount: number = await link.count();
|
||||||
if (0 <= linkCount) {
|
if (linkCount <= 0) {
|
||||||
await page.close();
|
await page.close();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue