From 41176313a4e4d4c3378214f347ab2fb0859072c0 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 30 Mar 2023 17:01:51 +0800 Subject: [PATCH] fix(nocodb): adopt new design of ast --- .../src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts index 8c000ccb3a..c91acf8720 100644 --- a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts +++ b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts @@ -147,7 +147,8 @@ class BaseModelSqlv2 { projectName: project.title, tableName: this.model.title, }); - data = await nocoExecute(await getAst({ model, view }), data, {}); + const { ast } = await getAst({ model, view }); + data = await nocoExecute(ast, data, {}); return data; }