Skip to content

Commit f3a5291

Browse files
committed
fix: change the format of the field ingredient send
1 parent 6c8dbbd commit f3a5291

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/modules/food/food.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,11 @@ export class FoodService extends DB {
105105
as: 'ingredient',
106106
in: {
107107
id_ingredient: '$$ingredient.id_ingredient',
108-
quantity: '$$ingredient.quantity',
109108
name: {
110109
$arrayElemAt: [
111110
'$ingredients.name',
112111
'$$ingredient.id_ingredient',
113-
], // Assuming 'ingredients' is the array of ingredients
112+
],
114113
},
115114
},
116115
},

0 commit comments

Comments
 (0)