Browse Source

fix: if record not found then return null rather than returning empty object

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5833/head
Pranav C 2 years ago
parent
commit
598b3d761c
  1. 2
      packages/nocodb/src/db/BaseModelSqlv2.ts

2
packages/nocodb/src/db/BaseModelSqlv2.ts

@ -172,7 +172,7 @@ class BaseModelSqlv2 {
data.__proto__ = proto; data.__proto__ = proto;
} }
return data ? await nocoExecute(ast, data, {}, query) : {}; return data ? await nocoExecute(ast, data, {}, query) : null;
} }
public async exist(id?: any): Promise<any> { public async exist(id?: any): Promise<any> {

Loading…
Cancel
Save