-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PS-2363] fix bumping AccountRevisionDate
when creating and updating ciphers
#2634
Conversation
Thank you for your contribution! We've added this to our internal Community PR board for review. |
AccountRevisionDate
when creating and updating ciphersAccountRevisionDate
when creating and updating ciphers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good catch, I think it's worth making a couple more changes to hopefully make this mistake harder to make in the future.
src/Infrastructure.EntityFramework/Repositories/CipherRepository.cs
Outdated
Show resolved
Hide resolved
src/Infrastructure.EntityFramework/Repositories/CipherRepository.cs
Outdated
Show resolved
Hide resolved
src/Infrastructure.EntityFramework/Repositories/CipherRepository.cs
Outdated
Show resolved
Hide resolved
5929a5f
to
41d22e0
Compare
When the user is not part of an organization, `UserBumpAccountRevisionDateByCipherIdQuery` doesn't work. In that case we have to use `UserBumpAccountRevisionDateAsync` instead. This was already done by most parts of the code but a few more were missing. Fixes bitwarden#2615
41d22e0
to
b8b5bc9
Compare
@justindbaur Thanks for the review. I've addressed all of your suggestions. |
My sync issues got fixed: bitwarden/server#2634
When the user is not part of an organization,
UserBumpAccountRevisionDateByCipherIdQuery
doesn't work. In that case we have to useUserBumpAccountRevisionDateAsync
instead.This was already done by most parts of the code but a few more were missing.
Type of change
Objective
Fixes #2615