Show the connection currently being used

This commit is contained in:
Ricardo Paes
2022-03-14 08:47:45 -03:00
parent 69023ef81e
commit c3154ae7fc
5 changed files with 27 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import Contact from "../../models/Contact";
import Message from "../../models/Message";
import Queue from "../../models/Queue";
import ShowUserService from "../UserServices/ShowUserService";
import Whatsapp from "../../models/Whatsapp";
interface Request {
searchParam?: string;
@@ -50,6 +51,11 @@ const ListTicketsService = async ({
model: Queue,
as: "queue",
attributes: ["id", "name", "color"]
},
{
model: Whatsapp,
as: "whatsapp",
attributes: ["name"]
}
];