|
|
@ -309,12 +309,13 @@ class BaseModelSql extends BaseModel { |
|
|
|
response = data; |
|
|
|
response = data; |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (ai) { |
|
|
|
} else if (ai) { |
|
|
|
response = await this.nestedRead( |
|
|
|
const nestedResponse = await this.nestedRead( |
|
|
|
Array.isArray(response) |
|
|
|
Array.isArray(response) |
|
|
|
? response?.[0]?.[ai._cn] |
|
|
|
? response?.[0]?.[ai._cn] |
|
|
|
: response?.[ai._cn], |
|
|
|
: response?.[ai._cn], |
|
|
|
this.defaultNestedBtQueryParams |
|
|
|
this.defaultNestedBtQueryParams |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
response = !_.isEmpty(nestedResponse) ? nestedResponse : response; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (Array.isArray(response)) { |
|
|
|
if (Array.isArray(response)) { |
|
|
|