From 0f540e669c877830c18789b07112ffe3d9a90dc5 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 31 Jul 2023 10:39:12 +0200 Subject: [PATCH] Types --- packages/server/src/api/controllers/row/views.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server/src/api/controllers/row/views.ts b/packages/server/src/api/controllers/row/views.ts index 2560002ead..c38b7fe56e 100644 --- a/packages/server/src/api/controllers/row/views.ts +++ b/packages/server/src/api/controllers/row/views.ts @@ -1,6 +1,6 @@ import { quotas } from "@budibase/pro" import { - Ctx, + UserCtx, SearchResponse, SortOrder, SortType, @@ -8,7 +8,7 @@ import { } from "@budibase/types" import sdk from "../../../sdk" -export async function searchView(ctx: Ctx) { +export async function searchView(ctx: UserCtx) { const { viewId } = ctx.params const view = await sdk.views.get(viewId) @@ -47,7 +47,7 @@ export async function searchView(ctx: Ctx) { } function getSortOptions( - ctx: Ctx, + ctx: UserCtx, view: ViewV2 ): | {