Fix types
This commit is contained in:
parent
7ed45f71d2
commit
0501980e45
|
@ -260,7 +260,7 @@ export async function search(ctx: Ctx<SearchRowRequest, SearchRowResponse>) {
|
|||
limit: searchRequest.limit,
|
||||
sort: searchRequest.sort,
|
||||
sortOrder: searchRequest.sortOrder,
|
||||
sortType: searchRequest.sortType,
|
||||
sortType: searchRequest.sortType ?? undefined,
|
||||
countRows: searchRequest.countRows,
|
||||
version: searchRequest.version,
|
||||
disableEscaping: searchRequest.disableEscaping,
|
||||
|
|
|
@ -57,7 +57,7 @@ function getSortOptions(request: SearchViewRowRequest, view: ViewV2) {
|
|||
return {
|
||||
sort: request.sort,
|
||||
sortOrder: request.sortOrder,
|
||||
sortType: request.sortType,
|
||||
sortType: request.sortType ?? undefined,
|
||||
}
|
||||
}
|
||||
if (view.sort) {
|
||||
|
|
Loading…
Reference in New Issue