Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Mike Cao 2023-09-29 05:29:40 -07:00
commit 0f12226401
1 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ function getPageFilters(filters: SearchFilter): [
orderBy: string;
},
] {
const { page = 1, pageSize = DEFAULT_PAGE_SIZE, orderBy } = filters || {};
const { page = 1, pageSize = DEFAULT_PAGE_SIZE, orderBy, sortDescending = false } = filters || {};
return [
{
@ -193,7 +193,7 @@ function getPageFilters(filters: SearchFilter): [
...(orderBy && {
orderBy: [
{
[orderBy]: 'asc',
[orderBy]: sortDescending ? 'desc' : 'asc',
},
],
}),