Feet: Get time from Frontend in Piechart

feat-scaling-ticket-remote-creation
adriano 2024-04-01 09:09:59 -03:00
parent e6ea004edf
commit ce7385602f
1 changed files with 3 additions and 1 deletions

View File

@ -292,7 +292,9 @@ const Dashboard = () => {
dispatch({ type: "RESET" })
dispatch({ type: "LOAD_QUERY", payload: data.usersProfile })
const { data: ticketStatusChatEndData } = await api.get("/reports/count/statusChatEnd")
const { data: ticketStatusChatEndData } = await api.get("/reports/count/statusChatEnd", {
params: { startDate: dateToday, endDate: dateToday },
})
setTicketStatusChatEnd(ticketStatusChatEndData.reportStatusChatEnd)