fix: let you pass None to fetch_one_with_member for me
This commit is contained in:
parent
ade45780fa
commit
f175c19325
2 changed files with 6 additions and 4 deletions
|
@ -122,7 +122,7 @@ impl Member {
|
|||
|
||||
pub async fn fetch_one_with_member(
|
||||
app_state: &AppState,
|
||||
me: &Me,
|
||||
me: Option<&Me>,
|
||||
uuid: Uuid,
|
||||
) -> Result<Self, Error> {
|
||||
let mut conn = app_state.pool.get().await?;
|
||||
|
@ -134,7 +134,7 @@ impl Member {
|
|||
.get_result(&mut conn)
|
||||
.await?;
|
||||
|
||||
member.build(app_state, Some(me)).await
|
||||
member.build(app_state, me).await
|
||||
}
|
||||
|
||||
pub async fn fetch_all(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue