Fix tests

This commit is contained in:
Adria Navarro 2023-09-27 16:51:15 +02:00
parent fdb6474868
commit bf975ac039
1 changed files with 1 additions and 7 deletions

View File

@ -1,8 +1,6 @@
import { IncludeRelationship, Operation, Row } from "@budibase/types"
import { handleRequest } from "../../../api/controllers/row/external"
import { breakRowIdField } from "../../../integrations/utils"
import { outputProcessing } from "../../../utilities/rowProcessor"
import sdk from "../../../sdk"
export async function getRow(
tableId: string,
@ -15,9 +13,5 @@ export async function getRow(
? IncludeRelationship.INCLUDE
: IncludeRelationship.EXCLUDE,
})) as Row[]
const row = response ? response[0] : response
const table = await sdk.tables.getTable(tableId)
const enrichedRow = await outputProcessing(table, row)
return enrichedRow
return response ? response[0] : response
}