fix: change endpoint to verify client existance

feat-hitphone-integration
gustavo-gsp 2024-06-14 12:15:58 -03:00
parent 5a8cf94c3e
commit c3452c72d7
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ const clientExistsCache = cache<boolean>(CLIENT_EXISTS_CACHE_TTL);
export const clientExists = async (id: string): Promise<boolean> => {
const fetcher = async (id: string) => {
const response = await fetchWithKey(`/clients/${id}`, { method: "HEAD" });
const response = await fetchWithKey(`/tenants/${id}`, { method: "HEAD" });
await responseOk(response);