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

safe-global / safe-client-gateway / 7085667460

04 Dec 2023 11:05AM UTC coverage: 89.703% (-0.1%) from 89.807%
7085667460

push

github

web-flow
Merge alerts, email and recovery features (#903)

- Removes `features.alerts` and `features.recovery` from the service configuration.
- These features are highly coupled to the email implementation which requires a deployed database.
- Setting `features.email` will now enable or disable the alerts, email and recovery related features.

1408 of 1701 branches covered (0.0%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 2 files covered. (100.0%)

14 existing lines in 3 files now uncovered.

5239 of 5709 relevant lines covered (91.77%)

152.57 hits per line

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

85.71
/src/datasources/db/postgres-database.module.ts
1
import * as postgres from 'postgres';
62✔
2
import { Module } from '@nestjs/common';
62✔
3
import { PostgresDatabaseShutdownHook } from '@/datasources/db/postgres-database.shutdown.hook';
62✔
4
import { IConfigurationService } from '@/config/configuration.service.interface';
62✔
5
import { PostgresDatabaseMigrationHook } from '@/datasources/db/postgres-database.migration.hook';
62✔
6

7
function dbFactory(configurationService: IConfigurationService): postgres.Sql {
UNCOV
8
  return postgres({
×
9
    host: configurationService.getOrThrow('db.postgres.host'),
10
    port: configurationService.getOrThrow('db.postgres.port'),
11
    db: configurationService.getOrThrow('db.postgres.database'),
12
    user: configurationService.getOrThrow('db.postgres.username'),
13
    password: configurationService.getOrThrow('db.postgres.password'),
14
  });
15
}
16

17
@Module({
18
  providers: [
19
    {
20
      provide: 'DB_INSTANCE',
21
      useFactory: dbFactory,
22
      inject: [IConfigurationService],
23
    },
24
    PostgresDatabaseShutdownHook,
25
    PostgresDatabaseMigrationHook,
26
  ],
27
  exports: ['DB_INSTANCE'],
28
})
29
export class PostgresDatabaseModule {}
62✔
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

© 2025 Coveralls, Inc