fix: search term parsing

This commit is contained in:
ppetzold 2020-06-28 19:50:08 +02:00
parent 2892a76b17
commit 33bb2f3dcd

View File

@ -32,7 +32,7 @@ export const Paginate = createParamDecorator(
page: query.page ? parseInt(query.page.toString(), 10) : undefined, page: query.page ? parseInt(query.page.toString(), 10) : undefined,
limit: query.limit ? parseInt(query.limit.toString(), 10) : undefined, limit: query.limit ? parseInt(query.limit.toString(), 10) : undefined,
sortBy: sortBy.length ? sortBy : undefined, sortBy: sortBy.length ? sortBy : undefined,
search: query.page ? query.search.toString() : undefined, search: query.search ? query.search.toString() : undefined,
path, path,
} }
} }