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

safe-global / safe-client-gateway / 11340871916

15 Oct 2024 06:58AM UTC coverage: 46.83% (-45.0%) from 91.836%
11340871916

push

github

web-flow
Bump typescript from 5.6.2 to 5.6.3 (#2015)

Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.6.2 to 5.6.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.6.2...v5.6.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

500 of 3096 branches covered (16.15%)

Branch coverage included in aggregate %.

5092 of 8845 relevant lines covered (57.57%)

12.16 hits per line

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

50.0
/src/datasources/db/postgres-database.shutdown.hook.ts
1
import { Inject, Injectable, OnModuleDestroy } from '@nestjs/common';
16✔
2
import postgres from 'postgres';
16✔
3
import { ILoggingService, LoggingService } from '@/logging/logging.interface';
16✔
4

5
@Injectable()
6
export class PostgresDatabaseShutdownHook implements OnModuleDestroy {
16✔
7
  private static readonly CONNECTION_CLOSE_TIMEOUT_IN_SECONDS = 5;
16✔
8

9
  constructor(
10
    @Inject('DB_INSTANCE') private readonly db: postgres.Sql,
×
11
    @Inject(LoggingService) private readonly loggingService: ILoggingService,
×
12
  ) {}
13

14
  async onModuleDestroy(): Promise<void> {
15
    this.loggingService.info('Closing database connection');
×
16
    // Resolves when all queries are finished and the underlying connections are closed
17
    await this.db.end({
×
18
      // Any pending queries will be rejected once the timeout is reached
19
      timeout: PostgresDatabaseShutdownHook.CONNECTION_CLOSE_TIMEOUT_IN_SECONDS,
20
    });
21
    this.loggingService.info('Database connection closed');
×
22
  }
23
}
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