mirror of
https://github.com/bitwarden/server.git
synced 2025-04-20 20:45:10 -05: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 ciphers = await _cipherRepository.GetManyByOrganizationIdAsync(orgIdGuid);
|
||||||
var cipherMatchKeys = ciphers.Select(c => c.Id);
|
|
||||||
|
|
||||||
var collectionCiphers = await _collectionCipherRepository.GetManyByOrganizationIdAsync(orgIdGuid);
|
var collectionCiphers = await _collectionCipherRepository.GetManyByOrganizationIdAsync(orgIdGuid);
|
||||||
var collectionCiphersGroupDict = collectionCiphers
|
var collectionCiphersGroupDict = collectionCiphers.GroupBy(c => c.CipherId).ToDictionary(s => s.Key);
|
||||||
.Where(c => cipherMatchKeys.Contains(c.CipherId))
|
|
||||||
.GroupBy(c => c.CipherId)
|
|
||||||
.ToDictionary(s => s.Key);
|
|
||||||
|
|
||||||
var responses = ciphers.Select(c => new CipherMiniDetailsResponseModel(c, _globalSettings,
|
var responses = ciphers.Select(c => new CipherMiniDetailsResponseModel(c, _globalSettings,
|
||||||
collectionCiphersGroupDict));
|
collectionCiphersGroupDict));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user