Exclude staff from CLA check
This commit is contained in:
parent
8ce7594a26
commit
1fd72d26cb
2 changed files with 14 additions and 8 deletions
|
@ -42,14 +42,19 @@ impl Database {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let Some(user) = user::Entity::find().filter(condition).one(&*tx).await? else {
|
if let Some(user) = user::Entity::find().filter(condition).one(&*tx).await? {
|
||||||
return Ok(None);
|
if user.admin {
|
||||||
};
|
return Ok(Some(user.created_at));
|
||||||
let Some(contributor) = contributor::Entity::find_by_id(user.id).one(&*tx).await?
|
}
|
||||||
else {
|
|
||||||
return Ok(None);
|
if let Some(contributor) =
|
||||||
};
|
contributor::Entity::find_by_id(user.id).one(&*tx).await?
|
||||||
Ok(Some(contributor.signed_at))
|
{
|
||||||
|
return Ok(Some(contributor.signed_at));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(None)
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,7 @@ pub struct Model {
|
||||||
pub inviter_id: Option<UserId>,
|
pub inviter_id: Option<UserId>,
|
||||||
pub connected_once: bool,
|
pub connected_once: bool,
|
||||||
pub metrics_id: Uuid,
|
pub metrics_id: Uuid,
|
||||||
|
pub created_at: DateTime,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue