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({