Browse Source

fix: if row not found return `null` rather than empty object

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5901/head
Pranav C 1 year ago
parent
commit
9db124c65f
  1. 2
      packages/nocodb/src/db/BaseModelSqlv2.ts

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

@ -168,7 +168,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