• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Bahatisteven / vuga / 6c05cfcc-5aea-4247-a701-b472e8a0eb3a

16 Mar 2026 08:02PM UTC coverage: 59.005% (-11.1%) from 70.113%
6c05cfcc-5aea-4247-a701-b472e8a0eb3a

push

circleci

Bahatisteven
perf: optimize database queries, add security middleware, implement caching improvements

146 of 277 branches covered (52.71%)

Branch coverage included in aggregate %.

14 of 30 new or added lines in 10 files covered. (46.67%)

70 existing lines in 3 files now uncovered.

352 of 567 relevant lines covered (62.08%)

1.47 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/app.module.ts
1
import { Module } from '@nestjs/common';
×
2
import { ConfigModule } from '@nestjs/config';
×
3
import { AppController } from './app.controller';
×
4
import { AppService } from './app.service';
×
5
import { UserModule } from './user/user.module';
×
6
import { AuthModule } from './auth/auth.module';
×
7
import { CallModule } from './call/call.module';
×
8
import { TypeOrmModule } from '@nestjs/typeorm';
×
9
import { TranslationModule } from './translation/translation.module';
×
10
import { SpeechModule } from './speech/speech.module';
×
11
import { WebsocketModule } from './websocket/websocket.module';
×
NEW
12
import { ThrottlerModule } from '@nestjs/throttler';
×
13

14
/**
15
 * root application module to bootstrap application
16
 */
17
@Module({
18
  imports: [
19
    ConfigModule.forRoot({
20
      isGlobal: true,
21
      envFilePath: '.env',
22
    }),
23
    ThrottlerModule.forRoot([
24
      {
25
        ttl: 60000,
26
        limit: 100,
27
      },
28
    ]),
29
    TypeOrmModule.forRoot({
30
      type: 'postgres',
31
      host: process.env.DB_HOST,
32
      port: parseInt(process.env.DB_PORT!, 10),
33
      username: process.env.DB_USERNAME,
34
      password: process.env.DB_PASSWORD,
35
      database: process.env.DB_DATABASE,
36
      entities: [__dirname + '/**/*.entity{.ts,.js}'],
37
      synchronize: process.env.NODE_ENV === 'development',
38
      logging: process.env.NODE_ENV === 'development',
39
      ssl:
40
        process.env.NODE_ENV === 'production'
×
41
          ? { rejectUnauthorized: false }
42
          : false,
43
      extra: {
44
        max: 20,
45
        min: 5,
46
        idleTimeoutMillis: 10000,
47
      },
48
    }),
49
    UserModule,
50
    AuthModule,
51
    CallModule,
52
    TranslationModule,
53
    SpeechModule,
54
    WebsocketModule,
55
  ],
56
  controllers: [AppController],
57
  providers: [AppService],
58
})
59
export class AppModule {}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc