Skip to content

Commit

Permalink
add ingredients too for the orderdetails
Browse files Browse the repository at this point in the history
  • Loading branch information
zeilenschubser committed Jun 28, 2024
1 parent 672c731 commit 9c6de04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/order/[id]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function GET(req: Request, { params }: { params: { id: string } })
// Get the foods for the order
const foodsDetails = await Food
.find({ _id: { $in: order.items } })
.select('name price');
.select('name price ingredients');

// Create a map of food details
const foodDetailsMap = foodsDetails
Expand Down

0 comments on commit 9c6de04

Please sign in to comment.