Types
This commit is contained in:
parent
7a9a997d73
commit
0f540e669c
|
@ -1,6 +1,6 @@
|
||||||
import { quotas } from "@budibase/pro"
|
import { quotas } from "@budibase/pro"
|
||||||
import {
|
import {
|
||||||
Ctx,
|
UserCtx,
|
||||||
SearchResponse,
|
SearchResponse,
|
||||||
SortOrder,
|
SortOrder,
|
||||||
SortType,
|
SortType,
|
||||||
|
@ -8,7 +8,7 @@ import {
|
||||||
} from "@budibase/types"
|
} from "@budibase/types"
|
||||||
import sdk from "../../../sdk"
|
import sdk from "../../../sdk"
|
||||||
|
|
||||||
export async function searchView(ctx: Ctx<void, SearchResponse>) {
|
export async function searchView(ctx: UserCtx<void, SearchResponse>) {
|
||||||
const { viewId } = ctx.params
|
const { viewId } = ctx.params
|
||||||
|
|
||||||
const view = await sdk.views.get(viewId)
|
const view = await sdk.views.get(viewId)
|
||||||
|
@ -47,7 +47,7 @@ export async function searchView(ctx: Ctx<void, SearchResponse>) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getSortOptions(
|
function getSortOptions(
|
||||||
ctx: Ctx,
|
ctx: UserCtx,
|
||||||
view: ViewV2
|
view: ViewV2
|
||||||
):
|
):
|
||||||
| {
|
| {
|
||||||
|
|
Loading…
Reference in New Issue