Skip to content

Commit

Permalink
added console log
Browse files Browse the repository at this point in the history
  • Loading branch information
anirvinv committed Apr 16, 2024
1 parent cd859c0 commit 936610d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/public/routes/order_route.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ router.get("/:id", [auth_1.default, roles_1.default.volunteer], (req, res) => {
});
router.post("/", [auth_1.default, roles_1.default.admin], (req, res) => {
const { client, brand, weight, } = req.body;
console.log(req.body);
const order = new order_schema_1.default({
client: new mongoose_1.default.Types.ObjectId(client),
createdOn: new Date(),
Expand Down
1 change: 1 addition & 0 deletions backend/routes/order_route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ router.post("/", [auth, roles.admin], (req: Request, res: Response) => {
brand,
weight,
} = req.body;
console.log(req.body);
const order = new Order(
{
client: new mongoose.Types.ObjectId(client),
Expand Down

0 comments on commit 936610d

Please sign in to comment.