|
|
@ -80,9 +80,9 @@ async function _formulaQueryBuilder( |
|
|
|
tree = validateFormulaAndExtractTreeWithType({ |
|
|
|
tree = validateFormulaAndExtractTreeWithType({ |
|
|
|
formula: _tree.replaceAll('{{', '{').replaceAll('}}', '}'), |
|
|
|
formula: _tree.replaceAll('{{', '{').replaceAll('}}', '}'), |
|
|
|
columns, |
|
|
|
columns, |
|
|
|
clientOrSqlUi: await Source.get(column.source_id).then( |
|
|
|
clientOrSqlUi: await Source.get( |
|
|
|
(source) => source.type, |
|
|
|
model?.source_id ?? column?.source_id, |
|
|
|
), |
|
|
|
).then((source) => source.type), |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// populate and save parsedTree to column if not exist
|
|
|
|
// populate and save parsedTree to column if not exist
|
|
|
|