From 4aaadc043669364505a5421a4dfb31c41366fd61 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 27 May 2024 15:24:48 +0000 Subject: [PATCH] refactor: coderabbit suggested changes --- .../src/filters/global-exception/global-exception.filter.ts | 5 ++--- packages/nocodb/src/meta/meta.service.ts | 4 ---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/nocodb/src/filters/global-exception/global-exception.filter.ts b/packages/nocodb/src/filters/global-exception/global-exception.filter.ts index 2c4a7e4c46..352b4e160f 100644 --- a/packages/nocodb/src/filters/global-exception/global-exception.filter.ts +++ b/packages/nocodb/src/filters/global-exception/global-exception.filter.ts @@ -41,9 +41,8 @@ export class GlobalExceptionFilter implements ExceptionFilter { } // try to extract db error for unknown errors - const dbError = !(exception instanceof NcBaseError) - ? extractDBError(exception) - : null; + const dbError = + exception instanceof NcBaseError ? null : extractDBError(exception); // skip unnecessary error logging if ( diff --git a/packages/nocodb/src/meta/meta.service.ts b/packages/nocodb/src/meta/meta.service.ts index c288d45133..8a9d033338 100644 --- a/packages/nocodb/src/meta/meta.service.ts +++ b/packages/nocodb/src/meta/meta.service.ts @@ -565,10 +565,6 @@ export class MetaService { query.select(...args.fields); } - query.andWhere((qb) => { - qb.where({}); - }); - return query; }