1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-06-16 07:40:08 +00:00

Revert "Merge branch 'beta' of https://github.com/krankur/bitwarden_rs into beta"

This reverts commit 3fd3d8d5e9.
This commit is contained in:
Miroslav Prasil 2018-08-13 12:35:41 +01:00
parent b5a057f063
commit 626a3c93ba
3 changed files with 68 additions and 5 deletions

View file

@ -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")
}
}