mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-11-02 11:26:48 +02:00
Bump user revision once for bulk cipher move (#7840)
This commit is contained in:
1 parent
0dbc92f2b7
commit
f1c7eccd4a
2 files changed
+21
-2
No files matched your search
@@ -520,7 +520,16 @@ impl Cipher {
|
||||
conn: &DbConn,
|
||||
) -> EmptyResult {
|
||||
User::update_uuid_revision(user_uuid, conn).await;
|
||||
self.move_to_folder_without_revision_update(folder_uuid, user_uuid, conn).await
|
||||
}
|
||||
|
||||
/// Same as `move_to_folder`, but the caller is responsible for updating the user's revision.
|
||||
pub async fn move_to_folder_without_revision_update(
|
||||
&self,
|
||||
folder_uuid: Option<FolderId>,
|
||||
user_uuid: &UserId,
|
||||
conn: &DbConn,
|
||||
) -> EmptyResult {
|
||||
match (self.get_folder_uuid(user_uuid, conn).await, folder_uuid) {
|
||||
// No changes
|
||||
(None, None) => Ok(()),
|
||||
|
||||
Reference in new issue
Block a user