Browse Source

fix: readByPk

pull/5444/head
Wing-Kam Wong 2 years ago
parent
commit
206c64aeca
  1. 3
      packages/nocodb-nest/src/db/BaseModelSqlv2.ts

3
packages/nocodb-nest/src/db/BaseModelSqlv2.ts

@ -175,8 +175,7 @@ class BaseModelSqlv2 {
tableName: this.model.title,
});
const { ast } = await getAst({ model, view });
data = data && (await nocoExecute(ast, data, {}));
return data;
return data ? await nocoExecute(ast, data, {}) : {};
}
public async exist(id?: any): Promise<any> {

Loading…
Cancel
Save