From 58600502a31a21d8cbbe239b3a35f31f5f06f1f5 Mon Sep 17 00:00:00 2001 From: mertmit Date: Wed, 5 Apr 2023 00:43:11 +0300 Subject: [PATCH] fix: formula LTAR column references Signed-off-by: mertmit --- .../sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts index 1aa1dd12c4..f6a93ea247 100644 --- a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts +++ b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts @@ -656,7 +656,7 @@ async function _formulaQueryBuilder( } else if (pt.type === 'Identifier') { const { builder } = await aliasToColumn?.[pt.name]?.(); if (typeof builder === 'function') { - return { builder: knex.raw(`??${colAlias}`, await builder(pt.fnName)) }; + return { builder: knex.raw(`??${colAlias}`, builder(pt.fnName)) }; } return { builder: knex.raw(`??${colAlias}`, [builder || pt.name]) }; } else if (pt.type === 'BinaryExpression') {