Skip to content

Commit 0da3d10

Browse files
committed
feat: Added rabbitmq to send events
1 parent 56d621b commit 0da3d10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import cors from 'cors';
55
import express, { json, NextFunction, Request, Response, urlencoded } from 'express';
66
import { join } from 'path';
77

8-
import { configService, Cors, HttpServer } from './config/env.config';
8+
import { configService, Cors, HttpServer, Rabbitmq } from './config/env.config';
99
import { onUnexpectedError } from './config/error.config';
1010
import { Logger } from './config/logger.config';
1111
import { ROOT_DIR } from './config/path.config';
@@ -87,7 +87,7 @@ function bootstrap() {
8787

8888
initIO(server);
8989

90-
initAMQP();
90+
if (configService.get<Rabbitmq>('RABBITMQ').ENABLED) initAMQP();
9191

9292
onUnexpectedError();
9393
}

0 commit comments

Comments
 (0)