fix: NADDOD stockLevel 'unknown' → 'on_request' — invalid value for price_observations check constraint
This commit is contained in:
parent
2b770aa1a9
commit
4b751a771b
@ -281,7 +281,7 @@ export async function scrapeNaddod(): Promise<void> {
|
||||
price,
|
||||
currency: "USD",
|
||||
stockLevel: stock?.qty !== undefined && stock.qty > 0 ? "in_stock" :
|
||||
stock?.confidence === 1 ? "in_stock" : "unknown",
|
||||
stock?.confidence === 1 ? "in_stock" : "on_request",
|
||||
url,
|
||||
contentHash: hash,
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user