Fix Demo enterprise list

This commit is contained in:
Urtzi Alfaro
2025-12-17 16:28:58 +01:00
parent f25d7a9745
commit b715a14848
8 changed files with 78 additions and 1286 deletions

View File

@@ -44,8 +44,8 @@ export class TenantService {
}
async getUserTenants(userId: string): Promise<TenantResponse[]> {
// Use the /owned endpoint since /users/{userId} has validation issues
return apiClient.get<TenantResponse[]>(`${this.baseUrl}/user/${userId}/owned`);
// Use the /tenants endpoint to get both owned and member tenants
return apiClient.get<TenantResponse[]>(`${this.baseUrl}/user/${userId}/tenants`);
}
async getUserOwnedTenants(userId: string): Promise<TenantResponse[]> {