From 8c5df90dafef448fa4be727b47f405b05aba82a1 Mon Sep 17 00:00:00 2001 From: Nastya Date: Sat, 7 Jun 2025 18:52:12 +0300 Subject: [PATCH] =?UTF-8?q?remove=20service=20=D1=83=20=D0=BF=D1=80=D0=B8?= =?UTF-8?q?=D0=B2=D0=B8=D0=BB=D0=B5=D0=B3=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/privilegies.ts | 2 +- src/pages/dashboard/Content/Support/Chat/Chat.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/privilegies.ts b/src/api/privilegies.ts index a8817d6..a5b5d68 100644 --- a/src/api/privilegies.ts +++ b/src/api/privilegies.ts @@ -50,7 +50,7 @@ export const requestServicePrivileges = async (): Promise<[SeverPrivilegesRespon try { const privilegesResponse = await makeRequest({ method: "GET", - url: `${API_URL}/privilege/service`, + url: `${API_URL}/privilege`, }); return [privilegesResponse]; diff --git a/src/pages/dashboard/Content/Support/Chat/Chat.tsx b/src/pages/dashboard/Content/Support/Chat/Chat.tsx index 39ac959..e58c627 100644 --- a/src/pages/dashboard/Content/Support/Chat/Chat.tsx +++ b/src/pages/dashboard/Content/Support/Chat/Chat.tsx @@ -96,6 +96,7 @@ export default function Chat() { useSSESubscription({ enabled: Boolean(token) && Boolean(ticketId), url: process.env.REACT_APP_DOMAIN + `/heruvym/v1.0.0/ticket?ticket=${ticketId}&Authorization=${token}`, + checkData: true, onNewData: addOrUpdateMessages, onDisconnect: () => { clearMessageState();