From 2a78409e8f81d6abc937769b8e5e699e509bf3f3 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 27 Sep 2024 13:07:17 +0100 Subject: [PATCH] Removing feature check. --- .../server/src/utilities/rowProcessor/index.ts | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/packages/server/src/utilities/rowProcessor/index.ts b/packages/server/src/utilities/rowProcessor/index.ts index 2d0098ede6..14f2690231 100644 --- a/packages/server/src/utilities/rowProcessor/index.ts +++ b/packages/server/src/utilities/rowProcessor/index.ts @@ -266,16 +266,12 @@ export async function outputProcessing( } 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