Skip to content

Commit

Permalink
refactor: coderabbit suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavxc committed May 24, 2024
1 parent 6467253 commit 127031e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 0 additions & 4 deletions packages/nocodb/src/meta/meta.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,10 +562,6 @@ export class MetaService {
query.select(...args.fields);
}

query.andWhere((qb) => {
qb.where({});
});

return query;
}

Expand Down

0 comments on commit 127031e

Please sign in to comment.