mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
fix: apply feedbacks
This commit is contained in:
parent
7322d21721
commit
718cec85ae
@ -22,7 +22,7 @@ export class PageQueryPipe<T>
|
||||
transform(value: PageQueryParams) {
|
||||
let skip: number | undefined = undefined;
|
||||
let limit: number | undefined = undefined;
|
||||
if ('limit' in value) {
|
||||
if (value && 'limit' in value) {
|
||||
skip =
|
||||
value?.skip && parseInt(value.skip) > -1 ? parseInt(value.skip) : 0;
|
||||
limit =
|
||||
|
Loading…
Reference in New Issue
Block a user