mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 04:02:54 -06:00
feat: Added rabbitmq to send events
This commit is contained in:
parent
56d621bab8
commit
0da3d100b3
@ -5,7 +5,7 @@ import cors from 'cors';
|
|||||||
import express, { json, NextFunction, Request, Response, urlencoded } from 'express';
|
import express, { json, NextFunction, Request, Response, urlencoded } from 'express';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
|
|
||||||
import { configService, Cors, HttpServer } from './config/env.config';
|
import { configService, Cors, HttpServer, Rabbitmq } from './config/env.config';
|
||||||
import { onUnexpectedError } from './config/error.config';
|
import { onUnexpectedError } from './config/error.config';
|
||||||
import { Logger } from './config/logger.config';
|
import { Logger } from './config/logger.config';
|
||||||
import { ROOT_DIR } from './config/path.config';
|
import { ROOT_DIR } from './config/path.config';
|
||||||
@ -87,7 +87,7 @@ function bootstrap() {
|
|||||||
|
|
||||||
initIO(server);
|
initIO(server);
|
||||||
|
|
||||||
initAMQP();
|
if (configService.get<Rabbitmq>('RABBITMQ').ENABLED) initAMQP();
|
||||||
|
|
||||||
onUnexpectedError();
|
onUnexpectedError();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user