1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

pass orgid from app code rather than querying it

This commit is contained in:
Kyle Spearrin
2017-05-04 07:23:40 -04:00
parent 5b5bd4e099
commit 4ab53d476c
4 changed files with 8 additions and 7 deletions

View File

@ -42,7 +42,8 @@ namespace Bit.Api.Controllers
throw new NotFoundException();
}
var collectionUsers = await _collectionUserRepository.GetManyDetailsByCollectionIdAsync(collectionIdGuid);
var collectionUsers = await _collectionUserRepository.GetManyDetailsByCollectionIdAsync(collection.OrganizationId,
collection.Id);
var responses = collectionUsers.Select(c => new CollectionUserResponseModel(c));
return new ListResponseModel<CollectionUserResponseModel>(responses);
}