fix: should be foreign
This commit is contained in:
1 parent
3c5e494216
commit
f568838ff9
1 file changed
+1
-1
@@ -26,5 +26,5 @@ pub async fn req(
|
||||
.map_err(|_| Error::InvalidCredentials)?;
|
||||
|
||||
user.update_username(db, data.username).await?;
|
||||
Ok(Json(user))
|
||||
Ok(Json(user.foreign()))
|
||||
}
|
||||
Reference in new issue
Block a user