Skip to content

Commit

Permalink
fix(api): error message on sentry disable (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mefjus authored Apr 6, 2021
1 parent 0637bdf commit 78793a2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/api/src/onInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ import { InvitationRepository } from './modules/repository/invitation.repository
import { UserRepository } from './modules/repository/user.repository';

const initSentry = (app: INestApplication, config: Config) => {
if (!config.sentry.isEnable) {
return;
}

Sentry.init({
dsn: config.sentry.dsn,
dsn: config.sentry.isEnable ? config.sentry.dsn : undefined,
environment: config.sentry.environment,
integrations: [
new Sentry.Integrations.Http({ tracing: true }),
Expand Down

0 comments on commit 78793a2

Please sign in to comment.