migrated import contacts controller to typescript

This commit is contained in:
canove
2020-09-22 11:09:52 -03:00
parent 9bab61c7dc
commit 0d8b4cd60c
7 changed files with 131 additions and 126 deletions

View File

@@ -16,6 +16,7 @@ import { initWbot } from "./libs/wbot";
// const wbotMonitor = require("./services/wbotMonitor");
import Whatsapp from "./models/Whatsapp";
import wbotMessageListener from "./services/WbotServices/wbotMessageListener";
import wbotMonitor from "./services/WbotServices/wbotMonitor";
Sentry.init({ dsn: process.env.SENTRY_DSN });
@@ -58,7 +59,7 @@ const startWhatsAppSessions = async () => {
initWbot(whatsapp)
.then(() => {
wbotMessageListener(whatsapp);
// wbotMonitor(whatsapp);
wbotMonitor(whatsapp);
})
.catch(err => console.log(err));
});