Fix for enrich endpoint discovered by tests.

This commit is contained in:
mike12345567 2024-07-31 17:22:17 +01:00
parent 70071dac28
commit b54157a6fb
1 changed files with 8 additions and 4 deletions

View File

@ -163,10 +163,14 @@ export async function fetchEnrichedRow(ctx: UserCtx) {
},
includeSqlRelationships: IncludeRelationship.INCLUDE,
})
row[fieldName] = await outputProcessing(linkedTable, relatedRows, {
row[fieldName] = await outputProcessing<Row[]>(
linkedTable,
relatedRows.rows,
{
squash: true,
preserveLinks: true,
})
}
)
}
return row
}