From c3452c72d786b713734398f06fd721f1e24f33aa Mon Sep 17 00:00:00 2001 From: gustavo-gsp Date: Fri, 14 Jun 2024 12:15:58 -0300 Subject: [PATCH] fix: change endpoint to verify client existance --- backend/src/services/External/HitphoneServices/ClientExists.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/services/External/HitphoneServices/ClientExists.ts b/backend/src/services/External/HitphoneServices/ClientExists.ts index 9332ac6..8971a96 100644 --- a/backend/src/services/External/HitphoneServices/ClientExists.ts +++ b/backend/src/services/External/HitphoneServices/ClientExists.ts @@ -19,7 +19,7 @@ const clientExistsCache = cache(CLIENT_EXISTS_CACHE_TTL); export const clientExists = async (id: string): Promise => { const fetcher = async (id: string) => { - const response = await fetchWithKey(`/clients/${id}`, { method: "HEAD" }); + const response = await fetchWithKey(`/tenants/${id}`, { method: "HEAD" }); await responseOk(response);