mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01: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;
|
||||
if (hasOrgs)
|
||||
{
|
||||
var keyMatches = ciphers.Select(c => c.Id); // Soft deletes not filtered in tweener "Get" methods
|
||||
var collectionCiphers = await _collectionCipherRepository.GetManyByUserIdAsync(userId);
|
||||
collectionCiphersGroupDict = collectionCiphers
|
||||
.Where(c => keyMatches.Contains(c.CipherId))
|
||||
.GroupBy(c => c.CipherId)
|
||||
.ToDictionary(s => s.Key);
|
||||
collectionCiphersGroupDict = collectionCiphers.GroupBy(c => c.CipherId).ToDictionary(s => s.Key);
|
||||
}
|
||||
|
||||
var responses = ciphers.Select(c => new CipherDetailsResponseModel(c, _globalSettings,
|
||||
|
@ -1,5 +1,5 @@
|
||||
CREATE PROCEDURE [dbo].[Cipher_SoftDelete]
|
||||
@Ids AS [dbo].[GuidIdArray] READONLY,
|
||||
@Ids AS [dbo].[GuidIdArray] READONLY,
|
||||
@UserId AS UNIQUEIDENTIFIER
|
||||
AS
|
||||
BEGIN
|
||||
|
Loading…
Reference in New Issue
Block a user