vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 6f521043245c0e806df5b18ba1855db8f84feaa9
parent 1d7f704754db42ba1f98d4eeeb80d59996d7e4f3
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Fri, 11 Jan 2019 01:35:15 +0100

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

Diffstat:
Msrc/db/models/attachment.rs | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/db/models/attachment.rs b/src/db/models/attachment.rs @@ -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)