backend: delete user instead of license

This commit is contained in:
Sphereso 2024-07-11 23:44:41 +02:00
parent a2180678c0
commit 16d3b8d5f8

View file

@ -113,7 +113,7 @@ impl UserController {
return Err(ErrorUnauthorized("Invalid Permissions")); return Err(ErrorUnauthorized("Invalid Permissions"));
} }
let db = &state.db; let db = &state.db;
entity::license::Entity::delete_by_id(id) entity::user::Entity::delete_by_id(id)
.exec(db) .exec(db)
.await .await
.map_err(ErrorInternalServerError)?; .map_err(ErrorInternalServerError)?;