mirror of
https://github.com/bitwarden/server.git
synced 2025-04-04 20:50:21 -05:00
Fix UpdateCiphersAsync
This commit is contained in:
parent
ad2a967368
commit
c51342429d
@ -864,7 +864,10 @@ public class CipherRepository : Repository<Core.Vault.Entities.Cipher, Cipher, G
|
||||
{
|
||||
var dbContext = GetDatabaseContext(scope);
|
||||
var entities = Mapper.Map<List<Cipher>>(ciphers);
|
||||
await dbContext.BulkCopyAsync(base.DefaultBulkCopyOptions, entities);
|
||||
foreach (var cipher in entities)
|
||||
{
|
||||
dbContext.Ciphers.Attach(cipher);
|
||||
}
|
||||
await dbContext.UserBumpAccountRevisionDateAsync(userId);
|
||||
await dbContext.SaveChangesAsync();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user