Fix types

This commit is contained in:
Adria Navarro 2024-11-28 16:44:25 +01:00
parent 7ed45f71d2
commit 0501980e45
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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) {