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 {