Fix tests
This commit is contained in:
parent
fdb6474868
commit
bf975ac039
|
@ -1,8 +1,6 @@
|
||||||
import { IncludeRelationship, Operation, Row } from "@budibase/types"
|
import { IncludeRelationship, Operation, Row } from "@budibase/types"
|
||||||
import { handleRequest } from "../../../api/controllers/row/external"
|
import { handleRequest } from "../../../api/controllers/row/external"
|
||||||
import { breakRowIdField } from "../../../integrations/utils"
|
import { breakRowIdField } from "../../../integrations/utils"
|
||||||
import { outputProcessing } from "../../../utilities/rowProcessor"
|
|
||||||
import sdk from "../../../sdk"
|
|
||||||
|
|
||||||
export async function getRow(
|
export async function getRow(
|
||||||
tableId: string,
|
tableId: string,
|
||||||
|
@ -15,9 +13,5 @@ export async function getRow(
|
||||||
? IncludeRelationship.INCLUDE
|
? IncludeRelationship.INCLUDE
|
||||||
: IncludeRelationship.EXCLUDE,
|
: IncludeRelationship.EXCLUDE,
|
||||||
})) as Row[]
|
})) as Row[]
|
||||||
const row = response ? response[0] : response
|
return response ? response[0] : response
|
||||||
|
|
||||||
const table = await sdk.tables.getTable(tableId)
|
|
||||||
const enrichedRow = await outputProcessing(table, row)
|
|
||||||
return enrichedRow
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue