diff --git a/api/src/utils/pagination/pagination-query.pipe.ts b/api/src/utils/pagination/pagination-query.pipe.ts index ee729670..076bf492 100644 --- a/api/src/utils/pagination/pagination-query.pipe.ts +++ b/api/src/utils/pagination/pagination-query.pipe.ts @@ -23,10 +23,9 @@ export class PageQueryPipe let skip: number | undefined = undefined; let limit: number | undefined = undefined; if (value && 'limit' in value) { - skip = - value?.skip && parseInt(value.skip) > -1 ? parseInt(value.skip) : 0; + skip = value.skip && parseInt(value.skip) > -1 ? parseInt(value.skip) : 0; limit = - value?.limit && parseInt(value.limit) > 0 + value.limit && parseInt(value.limit) > 0 ? parseInt(value.limit) : config.pagination.limit; }