mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: apply feedbacks
This commit is contained in:
parent
718cec85ae
commit
7e227d03de
@ -23,10 +23,9 @@ export class PageQueryPipe<T>
|
|||||||
let skip: number | undefined = undefined;
|
let skip: number | undefined = undefined;
|
||||||
let limit: number | undefined = undefined;
|
let limit: number | undefined = undefined;
|
||||||
if (value && '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 =
|
||||||
value?.limit && parseInt(value.limit) > 0
|
value.limit && parseInt(value.limit) > 0
|
||||||
? parseInt(value.limit)
|
? parseInt(value.limit)
|
||||||
: config.pagination.limit;
|
: config.pagination.limit;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user