Skip to content

Commit

Permalink
fix: bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luisfbl committed Jan 13, 2025
1 parent 025822b commit a8a5a56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ services:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
POSTGRES_PORT: ${DB_PORT}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
Expand Down
2 changes: 1 addition & 1 deletion rest-server/src/api/v1/users/me/orders/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub async fn orders(
JOIN products p ON sp.product_id = p.id
JOIN users u ON c.customer_id = u.id
WHERE sp.seller_id = 17 AND c.status = 2 OR c.status = 3 OR c.status = 4
GROUP BY u.name, u.avatar, c.customer_id
GROUP BY u.name, u.avatar, c.customer_id, c.created_at
ORDER BY c.created_at DESC;
"#
)
Expand Down

0 comments on commit a8a5a56

Please sign in to comment.