From 41194cbf04a4445cdc1f8c85440f879370acd3dc Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 19 Oct 2022 19:38:12 +0200 Subject: [PATCH] Fixes #51 --- backend/src/db/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/db/connection.rs b/backend/src/db/connection.rs index 8a21234..75c8afa 100644 --- a/backend/src/db/connection.rs +++ b/backend/src/db/connection.rs @@ -77,7 +77,7 @@ impl DBConnection { pub fn find_user(&mut self, span: &Span, _name: &str, _gitlab: bool) -> Option { use crate::schema::user::dsl::*; let _span = metrics::span("find_user_in_db", span); - user.filter(name.eq(name)).filter(gitlab.eq(_gitlab)).first(&mut self.db).ok() + user.filter(name.eq(_name)).filter(gitlab.eq(_gitlab)).first(&mut self.db).ok() } pub fn get_users(&mut self) -> Vec {