summaryrefslogtreecommitdiffstats
path: root/src/routes/model.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-25 13:47:49 +0000
committerSanto Cariotti <santo@dcariotti.me>2022-09-25 13:47:49 +0000
commit3a14419097ed710fb8b062d20078523c03b5b428 (patch)
tree20870be7ece4816723e37d2d2ccae979d82f8507 /src/routes/model.rs
parent159f5eda5e6937c4aaeae61cbca703761ee32003 (diff)
Edit user
Diffstat (limited to 'src/routes/model.rs')
-rw-r--r--src/routes/model.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/routes/model.rs b/src/routes/model.rs
index 8c2e656..5fe75a1 100644
--- a/src/routes/model.rs
+++ b/src/routes/model.rs
@@ -119,6 +119,8 @@ async fn edit_model(
payload.material,
claims.user_id,
);
+
+ // NOTE: can we edit this as same as `user.edit_avatar()`?
Model::edit(model.id, model_body).await?;
Ok(Json(model))
}