Merge pull request #14285 from Budibase/fix/datadog-400-error
Fix for HTTP 400 issue seen in Datadog logs
This commit is contained in:
commit
a646fc5052
|
@ -72,10 +72,14 @@ function buildInternalFieldList(
|
||||||
}
|
}
|
||||||
if (isRelationship) {
|
if (isRelationship) {
|
||||||
const linkCol = col as RelationshipFieldMetadata
|
const linkCol = col as RelationshipFieldMetadata
|
||||||
const relatedTable = tables.find(table => table._id === linkCol.tableId)!
|
const relatedTable = tables.find(table => table._id === linkCol.tableId)
|
||||||
// no relationships provided, don't go more than a layer deep
|
// no relationships provided, don't go more than a layer deep
|
||||||
fieldList = fieldList.concat(buildInternalFieldList(relatedTable, tables))
|
if (relatedTable) {
|
||||||
addJunctionFields(relatedTable, ["doc1.fieldName", "doc2.fieldName"])
|
fieldList = fieldList.concat(
|
||||||
|
buildInternalFieldList(relatedTable, tables)
|
||||||
|
)
|
||||||
|
addJunctionFields(relatedTable, ["doc1.fieldName", "doc2.fieldName"])
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
fieldList.push(`${table._id}.${mapToUserColumn(col.name)}`)
|
fieldList.push(`${table._id}.${mapToUserColumn(col.name)}`)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue