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') {