diff --git a/src/Api/Controllers/OrganizationsController.cs b/src/Api/Controllers/OrganizationsController.cs index 6568efe77a..0ae46fae3d 100644 --- a/src/Api/Controllers/OrganizationsController.cs +++ b/src/Api/Controllers/OrganizationsController.cs @@ -136,12 +136,12 @@ namespace Bit.Api.Controllers } [HttpGet("")] - public async Task> GetUser() + public async Task> GetUser() { var userId = _userService.GetProperUserId(User).Value; - var organizations = await _organizationRepository.GetManyByUserIdAsync(userId); - var responses = organizations.Select(o => new OrganizationResponseModel(o)); - return new ListResponseModel(responses); + var organizations = await _organizationUserRepository.GetManyDetailsByUserAsync(userId); + var responses = organizations.Select(o => new ProfileOrganizationResponseModel(o)); + return new ListResponseModel(responses); } [HttpPost("")]