logged out user fix
Build and Push Docker Image / build (push) Successful in 15s

This commit is contained in:
2026-06-06 14:23:43 -05:00
parent ea6612125c
commit 17a4fbf65d
2 changed files with 14 additions and 4 deletions
+6
View File
@@ -106,7 +106,13 @@ export async function checkStockStatus(url: string): Promise<ScrapeResult> {
status = 'in_stock';
} else {
// Sold-out / unavailable phrases — substring match on normalized button text.
// Ubiquiti shows different sold-out text depending on auth state:
// logged out → "Login for Notifications" (our scraper always sees this)
// logged in → "Notify me when available"
// Both mean the item is unavailable. Keep both, plus common siblings.
const soldOutPhrases = [
'login for notifications',
'login for updates',
'notify me when available',
'notify me',
'sold out',