diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2022-09-25 13:47:49 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2022-09-25 13:47:49 +0000 |
| commit | 3a14419097ed710fb8b062d20078523c03b5b428 (patch) | |
| tree | 20870be7ece4816723e37d2d2ccae979d82f8507 /src/routes/model.rs | |
| parent | 159f5eda5e6937c4aaeae61cbca703761ee32003 (diff) | |
Edit user
Diffstat (limited to 'src/routes/model.rs')
| -rw-r--r-- | src/routes/model.rs | 2 |
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)) } |
