Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Job launcher] Added enums parsing #2610

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ export class DatabaseConfigService {
* Default: 'log,info,warn,error'
*/
get logging(): string {
return this.configService.get<string>('POSTGRES_LOGGING', 'log,info,warn,error');
return this.configService.get<string>(
'POSTGRES_LOGGING',
'log,info,warn,error',
);
}
}
5 changes: 5 additions & 0 deletions packages/apps/job-launcher/server/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { ExceptionFilter } from './common/exceptions/exception.filter';
import { ScheduleModule } from '@nestjs/schedule';
import { StatisticModule } from './modules/statistic/statistic.module';
import { QualificationModule } from './modules/qualification/qualification.module';
import { TransformEnumInterceptor } from './common/interceptors/transform-enum.interceptor';

@Module({
providers: [
Expand All @@ -39,6 +40,10 @@ import { QualificationModule } from './modules/qualification/qualification.modul
provide: APP_INTERCEPTOR,
useClass: SnakeCaseInterceptor,
},
{
provide: APP_INTERCEPTOR,
useClass: TransformEnumInterceptor,
},
{
provide: APP_FILTER,
useClass: ExceptionFilter,
Expand Down
Loading