mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 19:59:20 +00:00
improvement: better names on wbot methods
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user