mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 19:32:21 -06:00
fix: Improved how Redis works for instances
This commit is contained in:
@@ -16,8 +16,6 @@ function initWA() {
|
||||
}
|
||||
|
||||
function bootstrap() {
|
||||
initWA();
|
||||
|
||||
const logger = new Logger('SERVER');
|
||||
const app = express();
|
||||
|
||||
@@ -34,8 +32,8 @@ function bootstrap() {
|
||||
methods: [...configService.get<Cors>('CORS').METHODS],
|
||||
credentials: configService.get<Cors>('CORS').CREDENTIALS,
|
||||
}),
|
||||
urlencoded({ extended: true, limit: '50mb' }),
|
||||
json({ limit: '50mb' }),
|
||||
urlencoded({ extended: true, limit: '136mb' }),
|
||||
json({ limit: '136mb' }),
|
||||
compression(),
|
||||
);
|
||||
|
||||
@@ -73,6 +71,8 @@ function bootstrap() {
|
||||
logger.log(httpServer.TYPE.toUpperCase() + ' - ON: ' + httpServer.PORT),
|
||||
);
|
||||
|
||||
initWA();
|
||||
|
||||
onUnexpectedError();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user