Skip to content

feat(program-course): enable default pagination and add timestamps#84

Merged
agaesh merged 1 commit intomainfrom
feat-default-page-limit
Feb 4, 2026
Merged

feat(program-course): enable default pagination and add timestamps#84
agaesh merged 1 commit intomainfrom
feat-default-page-limit

Conversation

@agaesh
Copy link
Owner

@agaesh agaesh commented Feb 4, 2026

  • Removed conditional check for top in ProgramCourseService → records are now limited per page with a default of 10
  • Simplified pagination logic using consistent limit and offset
  • Added migration to include createdAt and updatedAt timestamps in ProgramCourse model for better record tracking
  • ProgramCourseService now consistently returns top 10 records per page

- Removed conditional check for `top` in ProgramCourseService
  → records are now limited per page with a default of 10
- Simplified pagination logic using consistent `limit` and `offset`
- Added migration to include `createdAt` and `updatedAt` timestamps
  in ProgramCourse model for better record tracking
- ProgramCourseService now consistently returns top 10 records per page
@agaesh agaesh merged commit 4fc78da into main Feb 4, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant