mirror of
https://github.com/bitwarden/server.git
synced 2025-05-21 11:34:31 -05:00
Resolved PR comments, spacing and controller code-line reversion
This commit is contained in:
parent
d014a597dd
commit
1d04803bd0
@ -94,12 +94,8 @@ namespace Bit.Api.Controllers
|
|||||||
Dictionary<Guid, IGrouping<Guid, CollectionCipher>> collectionCiphersGroupDict = null;
|
Dictionary<Guid, IGrouping<Guid, CollectionCipher>> collectionCiphersGroupDict = null;
|
||||||
if (hasOrgs)
|
if (hasOrgs)
|
||||||
{
|
{
|
||||||
var keyMatches = ciphers.Select(c => c.Id); // Soft deletes not filtered in tweener "Get" methods
|
|
||||||
var collectionCiphers = await _collectionCipherRepository.GetManyByUserIdAsync(userId);
|
var collectionCiphers = await _collectionCipherRepository.GetManyByUserIdAsync(userId);
|
||||||
collectionCiphersGroupDict = collectionCiphers
|
collectionCiphersGroupDict = collectionCiphers.GroupBy(c => c.CipherId).ToDictionary(s => s.Key);
|
||||||
.Where(c => keyMatches.Contains(c.CipherId))
|
|
||||||
.GroupBy(c => c.CipherId)
|
|
||||||
.ToDictionary(s => s.Key);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var responses = ciphers.Select(c => new CipherDetailsResponseModel(c, _globalSettings,
|
var responses = ciphers.Select(c => new CipherDetailsResponseModel(c, _globalSettings,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user