This commit is contained in:
Mutzi 2022-10-19 19:38:12 +02:00
parent ffa3fc9a25
commit 41194cbf04

View File

@ -77,7 +77,7 @@ impl DBConnection {
pub fn find_user(&mut self, span: &Span, _name: &str, _gitlab: bool) -> Option<super::User> { pub fn find_user(&mut self, span: &Span, _name: &str, _gitlab: bool) -> Option<super::User> {
use crate::schema::user::dsl::*; use crate::schema::user::dsl::*;
let _span = metrics::span("find_user_in_db", span); 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<super::User> { pub fn get_users(&mut self) -> Vec<super::User> {