Browse Source

Fixing issue with rows not returning correctly.

pull/4023/head
mike12345567 5 years ago
parent
commit
d2cb0282ea
  1. 2
      packages/server/src/api/controllers/row/ExternalRequest.ts

2
packages/server/src/api/controllers/row/ExternalRequest.ts

@ -111,7 +111,7 @@ module External {
const thisRow: { [key: string]: any } = {}
// filter the row down to what is actually the row (not joined)
for (let fieldName of Object.keys(table.schema)) {
const value = row[`${table.name}.${fieldName}`]
const value = row[`${table.name}.${fieldName}`] || row[fieldName]
// all responses include "select col as table.col" so that overlaps are handled
if (value) {
thisRow[fieldName] = value

Loading…
Cancel
Save