Fixing issue with rows not returning correctly.

This commit is contained in:
mike12345567 2021-09-02 13:31:46 +01:00
parent 811ba19558
commit d864dedba0
1 changed files with 1 additions and 1 deletions

View File

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