fix: change endpoint to verify client existance
parent
5a8cf94c3e
commit
c3452c72d7
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue