fix: resolve remaining sonar findings
All checks were successful
build-and-push / lint (push) Successful in 4s
build-and-push / sonar (push) Successful in 12s
build-and-push / docker (push) Successful in 1m9s

This commit is contained in:
nocci 2025-12-31 10:38:07 +00:00
parent 5e0c5263ca
commit 2bc8e958d2
3 changed files with 26 additions and 12 deletions

View file

@ -98,7 +98,11 @@ try {
console.log(`Signed in as ${user}`);
db.data[user] ||= {};
page.locator('button:has-text("Accept All Cookies")').click().catch(_ => { });
try {
await page.locator('button:has-text("Accept All Cookies")').click();
} catch {
// button may not be present
}
const ids = [];
for (const p of await page.locator('article.asset').all()) {