Add per-product AI extraction disable option

- Add ai_extraction_disabled column to products table
- Add toggle in Advanced Settings alongside AI verification disable
- Pass skipAiExtraction flag through scheduler to scraper
- Skip AI extraction fallback when flag is set for product

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
clucraft 2026-01-24 21:09:19 -05:00
parent 0a66d55d79
commit be6dd6382e
7 changed files with 49 additions and 6 deletions

View file

@ -219,7 +219,7 @@ router.put('/:id', async (req: AuthRequest, res: Response) => {
return;
}
const { name, refresh_interval, price_drop_threshold, target_price, notify_back_in_stock, ai_verification_disabled } = req.body;
const { name, refresh_interval, price_drop_threshold, target_price, notify_back_in_stock, ai_verification_disabled, ai_extraction_disabled } = req.body;
const product = await productQueries.update(productId, userId, {
name,
@ -228,6 +228,7 @@ router.put('/:id', async (req: AuthRequest, res: Response) => {
target_price,
notify_back_in_stock,
ai_verification_disabled,
ai_extraction_disabled,
});
if (!product) {