fix: NADDOD stockLevel 'unknown' → 'on_request' — invalid value for price_observations check constraint
This commit is contained in:
parent
a06e2782ff
commit
9ba8369f18
@ -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