fix: let you pass None to fetch_one_with_member for me

This commit is contained in:
BAaboe 2025-07-22 23:18:21 +02:00
parent ade45780fa
commit f175c19325
2 changed files with 6 additions and 4 deletions

View file

@ -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(