Fixes #51
This commit is contained in:
parent
ffa3fc9a25
commit
41194cbf04
@ -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> {
|
||||||
|
Loading…
Reference in New Issue
Block a user