diff --git a/crates/backend/src/controller/license.rs b/crates/backend/src/controller/license.rs index 31b1d33..36c9782 100644 --- a/crates/backend/src/controller/license.rs +++ b/crates/backend/src/controller/license.rs @@ -75,7 +75,7 @@ impl LicenseController { let db = &state.db; let mut license = license.into_inner().into_active_model(); let id = path.into_inner(); - license.id = ActiveValue::Set(id); + license.id = ActiveValue::Unchanged(id); let res = license.update(db).await.map_err(ErrorInternalServerError)?; Ok(web::Json(res)) }