1
0
Fork 0
mirror of synced 2024-09-28 15:21:28 +12:00

Removing feature check.

This commit is contained in:
mike12345567 2024-09-27 13:07:17 +01:00
parent d71ba7d37f
commit 2a78409e8f

View file

@ -266,16 +266,12 @@ export async function outputProcessing<T extends Row[] | Row>(
}
let enriched: Row[]
// SQS returns the rows with full relationship contents
if (!(await features.flags.isEnabled("SQS"))) {
// attach any linked row information
enriched = !opts.preserveLinks
? await linkRows.attachFullLinkedDocs(table.schema, safeRows, {
fromRow: opts?.fromRow,
})
: safeRows
} else {
enriched = cloneDeep(safeRows)
}
// attach any linked row information
enriched = !opts.preserveLinks
? await linkRows.attachFullLinkedDocs(table.schema, safeRows, {
fromRow: opts?.fromRow,
})
: safeRows
if (!opts.squash && utils.hasCircularStructure(rows)) {
opts.squash = true