Fix Demo enterprise list
This commit is contained in:
@@ -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[]> {
|
||||
|
||||
Reference in New Issue
Block a user