geforkt von mirrored/vaultwarden
Fix casing error in Attachment, should fix 'Attachment doesn't exist' errors
Dieser Commit ist enthalten in:
Ursprung
1d7f704754
Commit
6f52104324
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
|
@ -85,6 +85,8 @@ impl Attachment {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn find_by_id(id: &str, conn: &DbConn) -> Option<Self> {
|
pub fn find_by_id(id: &str, conn: &DbConn) -> Option<Self> {
|
||||||
|
let id = id.to_lowercase();
|
||||||
|
|
||||||
attachments::table
|
attachments::table
|
||||||
.filter(attachments::id.eq(id))
|
.filter(attachments::id.eq(id))
|
||||||
.first::<Self>(&**conn)
|
.first::<Self>(&**conn)
|
||||||
|
|
Laden …
In neuem Issue referenzieren