From 212c544eb18a6509bc5462babcaa30c85c48b913 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Sun, 26 Jan 2025 20:47:31 +0100 Subject: [PATCH] fix(booklet): Typo so links are found --- backend/services/booklet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/booklet.ts b/backend/services/booklet.ts index a61a9ce..8783cbb 100644 --- a/backend/services/booklet.ts +++ b/backend/services/booklet.ts @@ -16,7 +16,7 @@ export async function fetchBooklet(url: string, downloadPath: string, context: B // Find link with goodies const link: Locator = page.locator('a').filter({hasText: '/goodies/'}); const linkCount: number = await link.count(); - if (0 <= linkCount) { + if (linkCount <= 0) { await page.close(); return null; }