Skip to content

Commit

Permalink
Merge pull request #45 from NIAEFEUP/hotfix/checkStock
Browse files Browse the repository at this point in the history
fixed mistake
  • Loading branch information
jose-carlos-sousa authored Feb 8, 2025
2 parents 0127080 + e411b43 commit 2f6c278
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion website/app/controllers/orders_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export default class OrdersController {
const successfulOrdersOfGivenProduct = await OrderProduct.query()
.join('orders', 'order_products.order_id', 'orders.id')
.where('order_products.product_id', productId)
.where('orders.status', 'Success')
.whereIn('orders.status', ['Success', 'Pending'])

const successfulOrdersOfGivenProductPerUser = await OrderProduct.query()
Expand Down

0 comments on commit 2f6c278

Please sign in to comment.