diff --git a/packages/server/src/utilities/rowProcessor/index.ts b/packages/server/src/utilities/rowProcessor/index.ts index 14f2690231..2f227dd646 100644 --- a/packages/server/src/utilities/rowProcessor/index.ts +++ b/packages/server/src/utilities/rowProcessor/index.ts @@ -264,10 +264,9 @@ export async function outputProcessing( } else { safeRows = rows } - let enriched: Row[] // SQS returns the rows with full relationship contents // attach any linked row information - enriched = !opts.preserveLinks + let enriched = !opts.preserveLinks ? await linkRows.attachFullLinkedDocs(table.schema, safeRows, { fromRow: opts?.fromRow, })