|
|
|
@ -5982,8 +5982,12 @@ class BaseModelSqlv2 {
|
|
|
|
|
if (!btAlias) { |
|
|
|
|
idToAliasPromiseMap[k] = Column.get(this.context, { |
|
|
|
|
colId: k, |
|
|
|
|
}).then((col) => { |
|
|
|
|
}) |
|
|
|
|
.then((col) => { |
|
|
|
|
return col.title; |
|
|
|
|
}) |
|
|
|
|
.catch((e) => { |
|
|
|
|
return Promise.resolve(e); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -5993,8 +5997,12 @@ class BaseModelSqlv2 {
|
|
|
|
|
if (!btAlias) { |
|
|
|
|
idToAliasPromiseMap[col.id] = Column.get(this.context, { |
|
|
|
|
colId: col.id, |
|
|
|
|
}).then((col) => { |
|
|
|
|
}) |
|
|
|
|
.then((col) => { |
|
|
|
|
return col.title; |
|
|
|
|
}) |
|
|
|
|
.catch((e) => { |
|
|
|
|
return Promise.resolve(e); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -6006,6 +6014,9 @@ class BaseModelSqlv2 {
|
|
|
|
|
|
|
|
|
|
for (const k of Object.keys(idToAliasPromiseMap)) { |
|
|
|
|
idToAliasMap[k] = await idToAliasPromiseMap[k]; |
|
|
|
|
if ((idToAliasMap[k] as unknown) instanceof Error) { |
|
|
|
|
throw idToAliasMap[k]; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
data.forEach((item) => { |
|
|
|
|