summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/routes/model.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/routes/model.rs b/src/routes/model.rs
index b87258b..7d10061 100644
--- a/src/routes/model.rs
+++ b/src/routes/model.rs
@@ -162,8 +162,7 @@ async fn upload_model_file(
/// The owner or a staffer can delete a model upload
async fn delete_model_file(
claims: Claims,
- Path(model_id): Path<i32>,
- Path(upload_id): Path<i32>,
+ Path((model_id, upload_id)): Path<(i32, i32)>,
) -> Result<StatusCode, AppError> {
let model = match Model::find_by_id(model_id).await {
Ok(model) => model,