fix: should be foreign

This commit is contained in:
Paul Makles
2022-03-03 22:44:55 +00:00
parent 3c5e494216
commit f568838ff9

View File

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