mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
Missed one other PR comment fix
This commit is contained in:
parent
1d04803bd0
commit
f6044f0d00
@ -206,13 +206,9 @@ namespace Bit.Api.Controllers
|
||||
}
|
||||
|
||||
var ciphers = await _cipherRepository.GetManyByOrganizationIdAsync(orgIdGuid);
|
||||
var cipherMatchKeys = ciphers.Select(c => c.Id);
|
||||
|
||||
var collectionCiphers = await _collectionCipherRepository.GetManyByOrganizationIdAsync(orgIdGuid);
|
||||
var collectionCiphersGroupDict = collectionCiphers
|
||||
.Where(c => cipherMatchKeys.Contains(c.CipherId))
|
||||
.GroupBy(c => c.CipherId)
|
||||
.ToDictionary(s => s.Key);
|
||||
var collectionCiphersGroupDict = collectionCiphers.GroupBy(c => c.CipherId).ToDictionary(s => s.Key);
|
||||
|
||||
var responses = ciphers.Select(c => new CipherMiniDetailsResponseModel(c, _globalSettings,
|
||||
collectionCiphersGroupDict));
|
||||
|
Loading…
Reference in New Issue
Block a user