no paging in REST-API by default

This commit is contained in:
Lou Knauer
2022-02-22 14:07:49 +01:00
parent 6ccf354035
commit ef089a7f2b
2 changed files with 2 additions and 2 deletions

View File

@@ -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)
}