From 7da330624fb46ec54b844bb600a3392a5441ce95 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 13 Apr 2023 12:17:29 +0100 Subject: [PATCH] Fixing build (again). --- packages/server/src/api/controllers/row/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/api/controllers/row/utils.ts b/packages/server/src/api/controllers/row/utils.ts index 2cf3b5472f..e96a4fe6ee 100644 --- a/packages/server/src/api/controllers/row/utils.ts +++ b/packages/server/src/api/controllers/row/utils.ts @@ -5,7 +5,7 @@ import { context } from "@budibase/backend-core" import { makeExternalQuery } from "../../../integrations/base/query" import { Row, Table } from "@budibase/types" import { Format } from "../view/exporters" -import { Ctx } from "@budibase/types" +import { UserCtx } from "@budibase/types" import sdk from "../../../sdk" const validateJs = require("validate.js") const { cloneDeep } = require("lodash/fp") @@ -26,7 +26,7 @@ export async function getDatasourceAndQuery(json: any) { return makeExternalQuery(datasource, json) } -export async function findRow(ctx: Ctx, tableId: string, rowId: string) { +export async function findRow(ctx: UserCtx, tableId: string, rowId: string) { const db = context.getAppDB() let row // TODO remove special user case in future