diff --git a/client/packages/service-message/provider/ServiceMessageProvider.tsx b/client/packages/service-message/provider/ServiceMessageProvider.tsx index c871eef61..e2392e033 100644 --- a/client/packages/service-message/provider/ServiceMessageProvider.tsx +++ b/client/packages/service-message/provider/ServiceMessageProvider.tsx @@ -32,7 +32,7 @@ export const ServiceMessageProvider: FC = ({ children }) => { serviceMessages.next(data); }, [data]); - const topic = useSignalR('portal', 'service-messages'); + const topic = useSignalR('servicemessages', 'service-messages'); useLayoutEffect(() => { const sub = topic.pipe(map((x) => x.shift() as ServiceMessage[])).subscribe(serviceMessages); diff --git a/client/packages/service-message/query/use-service-message-query.ts b/client/packages/service-message/query/use-service-message-query.ts index 40b654578..7bf56ad58 100644 --- a/client/packages/service-message/query/use-service-message-query.ts +++ b/client/packages/service-message/query/use-service-message-query.ts @@ -5,13 +5,13 @@ import { useQuery } from 'react-query'; import { ServiceMessage } from '../types/types'; export async function getActiveServiceMessages(client: IHttpClient): Promise { - const res = await client.fetch(`/api/service-messages/active`); + const res = await client.fetch(`/service-messages/active`); if (!res.ok) throw res; return (await res.json()) as ServiceMessage[]; } export const useServiceMessageQuery = () => { - const client = useFramework().modules.serviceDiscovery.createClient('portal'); + const client = useFramework().modules.serviceDiscovery.createClient('service-messages'); return useQuery({ queryKey: ['service-message'],