import 'dotenv/config' ; import 'reflect-metadata' ; import { container } from 'tsyringe' ; import * as Sentry from '@sentry/node' ; import '@shared/adapters' ; import '@shared/infra/mongoose/connection' ; import ProcessQueueService from '@modules/messages/services/ProcessQueueService' ; import sentryConfig from '@config/sentry' ; Sentry . init ( { dsn : sentryConfig . dsn } ) ; const processQueue = container . resolve ( ProcessQueueService ) ; processQueue . execute ( ) ; console . log ( '⚗‎‎  Processing mail sending queue!' ) ;