mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 12:51:40 +02:00
no paging in REST-API by default
This commit is contained in:
@@ -35,7 +35,7 @@ func (r *JobRepository) QueryJobs(
|
||||
}
|
||||
}
|
||||
|
||||
if page != nil {
|
||||
if page != nil && page.ItemsPerPage != -1 {
|
||||
limit := uint64(page.ItemsPerPage)
|
||||
query = query.Offset((uint64(page.Page) - 1) * limit).Limit(limit)
|
||||
}
|
||||
|
Reference in New Issue
Block a user