mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 19:32:21 -06:00
fix: baileys and chatwoot
This commit is contained in:
@@ -26,8 +26,8 @@ import cors from 'cors';
|
||||
import express, { json, NextFunction, Request, Response, urlencoded } from 'express';
|
||||
import { join } from 'path';
|
||||
|
||||
function initWA() {
|
||||
waMonitor.loadInstance();
|
||||
async function initWA() {
|
||||
await waMonitor.loadInstance();
|
||||
}
|
||||
|
||||
async function bootstrap() {
|
||||
@@ -159,7 +159,9 @@ async function bootstrap() {
|
||||
|
||||
server.listen(httpServer.PORT, () => logger.log(httpServer.TYPE.toUpperCase() + ' - ON: ' + httpServer.PORT));
|
||||
|
||||
initWA();
|
||||
initWA().catch((error) => {
|
||||
logger.error('Error loading instances: ' + error);
|
||||
});
|
||||
|
||||
onUnexpectedError();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user