Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

fix: use boolean to parse sentry config enabled flag #43

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Changes from all 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
4 changes: 2 additions & 2 deletions src/sentry.configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ArgumentsHost, INestApplication } from '@nestjs/common';
import { BaseExceptionFilter, HttpAdapterHost } from '@nestjs/core';

export class SentryConfiguration {
ENABLED = '';
ENABLED: boolean = false;
DSN = '';
INSTANCE_NAME = '';
ENVIRONMENT = '';
Expand All @@ -26,7 +26,7 @@ export function configureSentry(
configService: ConfigService,
): void {
const sentryConfiguration = loadSentryConfiguration(configService);
if (sentryConfiguration.ENABLED === 'true') {
if (sentryConfiguration.ENABLED) {
configureLoggingSentry(app, sentryConfiguration);
}
}
Expand Down
Loading