|
|
@ -1111,6 +1111,7 @@ class BaseModelSql extends BaseModel { |
|
|
|
* @param {Object[]} parent - parent list array |
|
|
|
* @param {Object[]} parent - parent list array |
|
|
|
* @param {String} child - child table name |
|
|
|
* @param {String} child - child table name |
|
|
|
* @param {Object} rest - index suffixed fields, limit, offset, where and sort |
|
|
|
* @param {Object} rest - index suffixed fields, limit, offset, where and sort |
|
|
|
|
|
|
|
* @param {Object} rest - index suffixed fields, limit, offset, where and sort |
|
|
|
* @param index - child table index |
|
|
|
* @param index - child table index |
|
|
|
* @returns {Promise<void>} |
|
|
|
* @returns {Promise<void>} |
|
|
|
* @private |
|
|
|
* @private |
|
|
@ -1378,7 +1379,7 @@ class BaseModelSql extends BaseModel { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const items = [item]; |
|
|
|
const items = Object.keys(item).length ? [item] : []; |
|
|
|
|
|
|
|
|
|
|
|
if (items && items.length) { |
|
|
|
if (items && items.length) { |
|
|
|
await Promise.all([...new Set(childs.split(','))].map((child, index) => child && this._getChildListInParent({ |
|
|
|
await Promise.all([...new Set(childs.split(','))].map((child, index) => child && this._getChildListInParent({ |
|
|
|