Fix tests
This commit is contained in:
parent
fdb6474868
commit
bf975ac039
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue