a9dc1b63c139505b9dc02412e3c407e8c8bb347b
Ingredients aren't attributable to individual batch dishes (they're one merged/shared list for the whole prep session, unlike steps which have `appliesTo`) — the cooked route's pantry-deduction block was unconditionally skipped whenever batchDishId was set, so pantry was never touched for any batch-cook recipe. Deducts once, on the first dish marked cooked for that recipe+user (checked via prior cookingHistory rows) — matches the fridge/freezer-day design intent of "cook the batch once, eat dishes over several days" rather than deducting (or trying to deduct) per individual dish. Verified locally: first dish cooked deducted the full recipe's ingredients from pantry; second dish cooked did not double-deduct.
Description
No description provided
Languages
TypeScript
99.2%
JavaScript
0.3%
CSS
0.2%
Dockerfile
0.2%