Skip to content

Commit

Permalink
Merge pull request #1 from Ram-143-sai/Ram-143-sai-patch-1
Browse files Browse the repository at this point in the history
Fixed issue academind#30
  • Loading branch information
Ram-143-sai authored Apr 9, 2023
2 parents 5546344 + 3945a47 commit 6dad5e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/routes/orders.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ router.post("/", (req, res, next) => {
});
}
const order = new Order({
_id: mongoose.Types.ObjectId(),
_id: new mongoose.Types.ObjectId(),
quantity: req.body.quantity,
product: req.body.productId
});
Expand Down

0 comments on commit 6dad5e4

Please sign in to comment.