mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 03:39:29 +00:00
fix: connections page not updating on session changes
This commit is contained in:
@@ -9,12 +9,6 @@ import DeleteWhatsAppService from "../services/WhatsappService/DeleteWhatsAppSer
|
||||
import ListWhatsAppsService from "../services/WhatsappService/ListWhatsAppsService";
|
||||
import ShowWhatsAppService from "../services/WhatsappService/ShowWhatsAppService";
|
||||
import UpdateWhatsAppService from "../services/WhatsappService/UpdateWhatsAppService";
|
||||
// import Yup from "yup";
|
||||
// import Whatsapp from "../models/Whatsapp";
|
||||
// import { getIO } from "../libs/socket";
|
||||
// import { getWbot, initWbot, removeWbot } from "../libs/wbot";
|
||||
// import wbotMessageListener from "../services/wbotMessageListener";
|
||||
// import wbotMonitor from "../services/wbotMonitor";
|
||||
|
||||
interface WhatsappData {
|
||||
name: string;
|
||||
|
||||
@@ -21,7 +21,7 @@ const wbotMonitor = (whatsapp: Whatsapp): void => {
|
||||
console.log(err);
|
||||
}
|
||||
|
||||
io.emit("session", {
|
||||
io.emit("whatsappSession", {
|
||||
action: "update",
|
||||
session: whatsapp
|
||||
});
|
||||
@@ -40,7 +40,7 @@ const wbotMonitor = (whatsapp: Whatsapp): void => {
|
||||
console.log(err);
|
||||
}
|
||||
|
||||
io.emit("session", {
|
||||
io.emit("whatsappSession", {
|
||||
action: "update",
|
||||
session: whatsapp
|
||||
});
|
||||
@@ -55,7 +55,7 @@ const wbotMonitor = (whatsapp: Whatsapp): void => {
|
||||
console.log(err);
|
||||
}
|
||||
|
||||
io.emit("session", {
|
||||
io.emit("whatsappSession", {
|
||||
action: "update",
|
||||
session: whatsapp
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user