fix: should be foreign
This commit is contained in:
@@ -26,5 +26,5 @@ pub async fn req(
|
|||||||
.map_err(|_| Error::InvalidCredentials)?;
|
.map_err(|_| Error::InvalidCredentials)?;
|
||||||
|
|
||||||
user.update_username(db, data.username).await?;
|
user.update_username(db, data.username).await?;
|
||||||
Ok(Json(user))
|
Ok(Json(user.foreign()))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user