From 6bbd2f071a4a8af9c2c6e132f1379538e7ecf3f7 Mon Sep 17 00:00:00 2001 From: Robson Tenorio Date: Sat, 24 Dec 2022 19:46:49 -0300 Subject: [PATCH] =?UTF-8?q?Atualiza=C3=A7=C3=A3o=20do=20ListTicketService?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/services/TicketServices/ListTicketsService.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/src/services/TicketServices/ListTicketsService.ts b/backend/src/services/TicketServices/ListTicketsService.ts index b8d8dd65..5cd16944 100644 --- a/backend/src/services/TicketServices/ListTicketsService.ts +++ b/backend/src/services/TicketServices/ListTicketsService.ts @@ -5,8 +5,8 @@ import Ticket from "../../models/Ticket"; 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"; +import ShowUserService from "../UserServices/ShowUserService"; interface Request { searchParam?: string; @@ -45,7 +45,8 @@ const ListTicketsService = async ({ { model: Contact, as: "contact", - attributes: ["id", "name", "number", "profilePicUrl"] + attributes: ["id", "name", "number", "profilePicUrl"], + include: ["extraInfo", "contactTags", "tags"] }, { model: Queue, @@ -132,7 +133,7 @@ const ListTicketsService = async ({ }; } - const limit = 40; + const limit = 999; const offset = limit * (+pageNumber - 1); const { count, rows: tickets } = await Ticket.findAndCountAll({