Lots of new AI tasks tweaks and fixes

This commit is contained in:
2026-01-20 13:15:10 -05:00
parent 167c13c572
commit 1dcb47cfc5
17 changed files with 1202 additions and 264 deletions

View File

@@ -409,8 +409,12 @@ router.post('/validate/sanity-check', async (req, res) => {
return res.status(400).json({ error: 'Products array is required' });
}
// Get pool from app.locals (set by server.js)
const pool = req.app.locals.pool;
const result = await aiService.runTask(aiService.TASK_IDS.SANITY_CHECK, {
products
products,
pool
});
if (!result.success) {