ballyalley-o / tccp-server

A scalable backend server solution designed to manage and orchestrate software development bootcamps/courses from multiple schools, providing robust APIs and data storage capabilities.
2 stars 0 forks source link

[BUG] : Query params not returning any data (advanced results middleware) #66

Open ballyalley-o opened 2 months ago

ballyalley-o commented 2 months ago

Describe the bug The query param select, sort, limit and page doesn't return any data, but when you dont add any, it returns all the data.

To Reproduce Steps to reproduce the behavior:

  1. Open Postman
  2. Go to any Get Request that uses advance Results
  3. add a query params, any.
  4. See the empty data param.

Expected behavior It should return whatever is the query.

Screenshots

{
    "success": true,
    "message": "OK: Request fetched",
    "count": 0,
    "pagination": {},
    "data": []  // <--- This line sends nothing
}

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.