Browse Source

refactor: avoid sending back sql query on api failure

pull/6579/head
Pranav C 1 year ago
parent
commit
38fd88b278
  1. 6
      packages/nocodb/src/services/datas.service.ts

6
packages/nocodb/src/services/datas.service.ts

@ -14,6 +14,8 @@ import NcConnectionMgrv2 from '~/utils/common/NcConnectionMgrv2';
@Injectable()
export class DatasService {
protected logger = new Logger(DatasService.name);
constructor() {}
async dataList(
@ -166,7 +168,7 @@ export class DatasService {
listArgs,
);
} catch (e) {
console.log(e);
this.logger.log(e);
NcError.internalServerError(
'Please check server log for more details',
);
@ -689,7 +691,7 @@ export class DatasService {
dependencyFields,
);
} catch (e) {
console.log(e);
this.logger.error(e);
NcError.internalServerError('Please check server log for more details');
}
}

Loading…
Cancel
Save