0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-12-14 17:43:46 +01:00

Fix casing error in Attachment, should fix 'Attachment doesn't exist' errors

This commit is contained in:
Daniel García 2019-01-11 01:35:15 +01:00
parent 1d7f704754
commit 6f52104324
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A

View file

@ -85,6 +85,8 @@ impl Attachment {
}
pub fn find_by_id(id: &str, conn: &DbConn) -> Option<Self> {
let id = id.to_lowercase();
attachments::table
.filter(attachments::id.eq(id))
.first::<Self>(&**conn)