Sunagatov / Iced-Latte

a online Marketplace for coffee retail (Backend)
https://iced-latte.uk
MIT License
596 stars 108 forks source link

Duplication of products on different pages #298

Open Lightness322 opened 4 months ago

Lightness322 commented 4 months ago

Describe the bug Duplication of products on different pages when requesting from the backend

To Reproduce Steps to reproduce the behavior:

  1. Request: https://iced-latte.uk/backend/api/v1/products?page=0&size=6&sort_attribute=averageRating&sort_direction=desc
  2. Request: https://iced-latte.uk/backend/api/v1/products?page=1&size=6&sort_attribute=averageRating&sort_direction=desc GET-request Only page changed! Other parameters are the same!

Expected behavior We get different products

Screenshots image image

Actual behavior Product with id="e70f1d94-d55f-4e0e-8a6b-28e2ca3c6c34" repeated on two pages