mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-23 12:38:09 +03:00
Implemented bulk cipher share (share selected) #100
This commit is contained in:
1 parent
8ffa7ebb6a
commit
ddda86b90d
3 files changed
+68
-5
No files matched your search
@@ -111,4 +111,10 @@ impl Attachment {
|
||||
.filter(attachments::cipher_uuid.eq(cipher_uuid))
|
||||
.load::<Self>(&**conn).expect("Error loading attachments")
|
||||
}
|
||||
|
||||
pub fn find_by_ciphers(cipher_uuids: Vec<String>, conn: &DbConn) -> Vec<Self> {
|
||||
attachments::table
|
||||
.filter(attachments::cipher_uuid.eq_any(cipher_uuids))
|
||||
.load::<Self>(&**conn).expect("Error loading attachments")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user