Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Commit f135cda

Browse files
committed
refactor: Update Prometheus module configuration to use registerAsync for improved async support
1 parent 8db4691 commit f135cda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/prometheus/prometheus.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { PrometheusModule as PrometheusModuleLib } from '@willsoto/nestjs-promet
44

55
@Module({
66
imports: [
7-
PrometheusModuleLib.forRootAsync({
7+
PrometheusModuleLib.registerAsync({
88
imports: [ConfigModule],
99
useFactory: (configService: ConfigService) => {
1010
const enabled = configService.get<string>('PROMETHEUS_ENABLED', 'true') === 'true';

0 commit comments

Comments
 (0)