fix missing difficulty on summary selection

This commit is contained in:
2025-08-10 14:50:28 +01:00
parent 758864494c
commit 1b35c90dcb
2 changed files with 3 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ async function aggregateIngredients(selectedRecipes) {
router.get('/', authenticateToken, async (req, res) => {
try {
let userSelection = await UserSelection.findOne({ userId: req.userId })
.populate('selectedRecipes.recipeId', 'title description imageUrl category');
.populate('selectedRecipes.recipeId', 'title description imageUrl category difficulty prepTime cookTime');
if (!userSelection) {
userSelection = new UserSelection({