fix: apply feedbacks

This commit is contained in:
yassinedorbozgithub 2025-01-07 16:41:28 +01:00
parent 7322d21721
commit 718cec85ae

View File

@ -22,7 +22,7 @@ export class PageQueryPipe<T>
transform(value: PageQueryParams) { transform(value: PageQueryParams) {
let skip: number | undefined = undefined; let skip: number | undefined = undefined;
let limit: number | undefined = undefined; let limit: number | undefined = undefined;
if ('limit' in value) { if (value && 'limit' in value) {
skip = skip =
value?.skip && parseInt(value.skip) > -1 ? parseInt(value.skip) : 0; value?.skip && parseInt(value.skip) > -1 ? parseInt(value.skip) : 0;
limit = limit =