improvement: better names on wbot methods

This commit is contained in:
canove
2020-09-05 15:43:52 -03:00
parent b8ff993e6f
commit 40e2e5e8a6
8 changed files with 160 additions and 92 deletions

View File

@@ -3,7 +3,7 @@ const Sentry = require("@sentry/node");
const wbotMessageListener = require("./wbotMessageListener");
const { getIO } = require("../libs/socket");
const { getWbot, init } = require("../libs/wbot");
const { getWbot, initWbot } = require("../libs/wbot");
const wbotMonitor = dbSession => {
const io = getIO();
@@ -61,7 +61,7 @@ const wbotMonitor = dbSession => {
setTimeout(
() =>
init(dbSession)
initWbot(dbSession)
.then(() => {
wbotMessageListener(dbSession);
wbotMonitor(dbSession);