1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 01:22:50 -05:00

Fix AccountRevisionDate (#2467)

* Update AccountRevisionDate directly by userId
* Have special DateTime handling on postgres
This commit is contained in:
Justin Baur
2022-12-04 21:40:20 -05:00
committed by GitHub
parent 3a201e7520
commit c39736c583
3 changed files with 18 additions and 17 deletions

View File

@ -139,7 +139,7 @@ public class CipherRepository : Repository<Core.Entities.Cipher, Cipher, Guid>,
await dbContext.BulkCopyAsync(base.DefaultBulkCopyOptions, folderEntities);
var cipherEntities = Mapper.Map<List<Cipher>>(ciphers);
await dbContext.BulkCopyAsync(base.DefaultBulkCopyOptions, cipherEntities);
await dbContext.UserBumpAccountRevisionDateByCipherIdAsync(ciphers);
await dbContext.UserBumpAccountRevisionDateAsync(ciphers.First().UserId.GetValueOrDefault());
await dbContext.SaveChangesAsync();
}
}