Refactor sentry

This commit is contained in:
2022-04-01 21:43:33 +03:00
parent 4166e44842
commit 69ca54b055
6 changed files with 17 additions and 37 deletions

View File

@@ -1,5 +1,3 @@
import * as Sentry from '@sentry/node';
import express, { Response, Request, NextFunction } from 'express';
import { Server } from 'http';
@@ -12,11 +10,7 @@ import getBot from '../factory/index';
import UsersCounter from '@/analytics/users_counter';
import { makeSyncRequest } from "./utils";
import { BotState } from "./types";
Sentry.init({
dsn: env.SENTRY_DSN,
});
import Sentry from '@/sentry';
export default class BotsManager {