Removing feature check.

This commit is contained in:
mike12345567 2024-09-27 13:07:17 +01:00
parent d71ba7d37f
commit 2a78409e8f
1 changed files with 6 additions and 10 deletions

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