mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 23:52:50 -05:00
Updated PR comments, changed smart defaults for behavior, updated Cipher table index
This commit is contained in:
@ -23,8 +23,8 @@ namespace Bit.Core.Repositories
|
||||
Task UpdatePartialAsync(Guid id, Guid userId, Guid? folderId, bool favorite);
|
||||
Task UpdateAttachmentAsync(CipherAttachment attachment);
|
||||
Task DeleteAttachmentAsync(Guid cipherId, string attachmentId);
|
||||
Task DeleteAsync(Cipher obj, bool permanent = false);
|
||||
Task DeleteAsync(IEnumerable<Guid> ids, Guid userId, bool permanent = false);
|
||||
Task DeleteAsync(Cipher obj, bool permanent = true);
|
||||
Task DeleteAsync(IEnumerable<Guid> ids, Guid userId, bool permanent = true);
|
||||
Task MoveAsync(IEnumerable<Guid> ids, Guid? folderId, Guid userId);
|
||||
Task DeleteByUserIdAsync(Guid userId);
|
||||
Task DeleteByOrganizationIdAsync(Guid organizationId);
|
||||
|
@ -215,9 +215,9 @@ namespace Bit.Core.Repositories.SqlServer
|
||||
}
|
||||
}
|
||||
|
||||
public async Task DeleteAsync(Cipher obj, bool permanent = false)
|
||||
public async Task DeleteAsync(Cipher obj, bool permanent = true)
|
||||
{
|
||||
using (var connection = new SqlConnection(ConnectionString))
|
||||
using(var connection = new SqlConnection(ConnectionString))
|
||||
{
|
||||
var results = await connection.ExecuteAsync(
|
||||
$"[{Schema}].[Cipher_DeleteById]",
|
||||
@ -226,7 +226,7 @@ namespace Bit.Core.Repositories.SqlServer
|
||||
}
|
||||
}
|
||||
|
||||
public async Task DeleteAsync(IEnumerable<Guid> ids, Guid userId, bool permanent = false)
|
||||
public async Task DeleteAsync(IEnumerable<Guid> ids, Guid userId, bool permanent = true)
|
||||
{
|
||||
using(var connection = new SqlConnection(ConnectionString))
|
||||
{
|
||||
|
Reference in New Issue
Block a user