fix: removed unused env variable for aggregate (#10237)

This commit is contained in:
Ganesh Kumar 2024-07-01 18:27:52 +05:30 committed by GitHub
parent 2dec9a106d
commit 4c778d4e71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,9 +35,7 @@ export class TooljetDbModule implements OnModuleInit {
const hasTooljetDbReconfig = this.configService.get('TOOLJET_DB_RECONFIG') === 'true';
this.logger.log(`Tooljet Database reconfig: ${hasTooljetDbReconfig}`);
const shouldRunPreConfigFunction = this.configService.get('PGRST_DB_PRE_CONFIG') === 'postgrest.pre_config';
if (hasTooljetDbReconfig && shouldRunPreConfigFunction) {
if (hasTooljetDbReconfig) {
const tooljtDbUser = this.configService.get('TOOLJET_DB_USER');
const statementTimeout = this.configService.get('TOOLJET_DB_STATEMENT_TIMEOUT') || 60000;
const statementTimeoutInSecs = Number.isNaN(Number(statementTimeout)) ? 60 : Number(statementTimeout) / 1000;