Skip to content

Commit

Permalink
Only show unconfirmed orders
Browse files Browse the repository at this point in the history
  • Loading branch information
bluo999 committed Mar 1, 2022
1 parent 0c599c1 commit 0569dc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/routes/customer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ customerRouter.get('/order', async function (req, res) {
const order = await OrderModel.
findOne().
where('customer').equals(custId).
where('status').equals('UNCONFIRMED').
sort({createdAt: -1}).
exec();
res.send(order);
Expand Down

0 comments on commit 0569dc4

Please sign in to comment.