From c4930bb7b8d17fb64714090a48c9ea874e497a7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20CG?= Date: Thu, 31 Oct 2024 12:12:50 +0100 Subject: [PATCH] fix: change related prompts endpoint --- .../endpoint-adapters/related-prompts.endpoint-adapter.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/x-adapter-platform/src/endpoint-adapters/related-prompts.endpoint-adapter.ts b/packages/x-adapter-platform/src/endpoint-adapters/related-prompts.endpoint-adapter.ts index 838f92e38a..65baab1d33 100644 --- a/packages/x-adapter-platform/src/endpoint-adapters/related-prompts.endpoint-adapter.ts +++ b/packages/x-adapter-platform/src/endpoint-adapters/related-prompts.endpoint-adapter.ts @@ -2,17 +2,20 @@ import { endpointAdapterFactory, interpolate } from '@empathyco/x-adapter'; import { RelatedPromptsRequest, RelatedPromptsResponse } from '@empathyco/x-types'; import { relatedPromptsRequestMapper } from '../mappers/requests/related-prompts-request.mapper'; import { relatedPromptsResponseMapper } from '../mappers/responses/related-prompts-response.mapper'; -import { getSearchServiceUrl } from './utils'; +import { getBeaconServiceUrl } from './utils'; /** + * Default adapter for the related prompt endpoint. * This endpoint does not support pagination in the request. + * + * @public */ export const relatedPromptsEndpointAdapter = endpointAdapterFactory< RelatedPromptsRequest, RelatedPromptsResponse >({ endpoint: from => - interpolate(`${getSearchServiceUrl(from)}/relatedprompts/{extraParams.instance}`, from), + interpolate(`${getBeaconServiceUrl(from)}/relatedprompts/{extraParams.instance}`, from), requestMapper: relatedPromptsRequestMapper, responseMapper: relatedPromptsResponseMapper, defaultRequestOptions: {