Fix getting tennat
This commit is contained in:
@@ -30,7 +30,8 @@ export class TenantService {
|
||||
}
|
||||
|
||||
async getUserTenants(userId: string): Promise<TenantResponse[]> {
|
||||
return apiClient.get<TenantResponse[]>(`${this.baseUrl}/users/${userId}`);
|
||||
// Use the /owned endpoint since /users/{userId} has validation issues
|
||||
return apiClient.get<TenantResponse[]>(`${this.baseUrl}/user/${userId}/owned`);
|
||||
}
|
||||
|
||||
async getUserOwnedTenants(userId: string): Promise<TenantResponse[]> {
|
||||
|
||||
Reference in New Issue
Block a user