From 849b82cef4b88bd1250cdab3a665ca3a87cccf41 Mon Sep 17 00:00:00 2001 From: Neshura Date: Thu, 7 Sep 2023 21:54:52 +0200 Subject: [PATCH] schema change for compat reasons on frontend --- src/v3/mod.rs | 2 +- src/v3/schemas.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v3/mod.rs b/src/v3/mod.rs index 7769a5b..4cf27be 100644 --- a/src/v3/mod.rs +++ b/src/v3/mod.rs @@ -220,7 +220,7 @@ pub(crate) async fn full_view_data(data: web::Data) -> impl Responder let id = empire_ethic.empire_id; let new_data = schemas::EmpireEthicLegacy { - id: empire_ethic.ethics_id, + ethic_id: empire_ethic.ethics_id, display: parsed_data.ethics[&empire_ethic.ethics_id].display.clone(), machine: parsed_data.ethics[&empire_ethic.ethics_id].machine, fanatic: empire_ethic.fanatic, diff --git a/src/v3/schemas.rs b/src/v3/schemas.rs index 2a25b96..d8ec992 100644 --- a/src/v3/schemas.rs +++ b/src/v3/schemas.rs @@ -230,7 +230,7 @@ pub struct EmpireEthic { #[derive(Serialize, ToSchema, Debug, Clone)] pub struct EmpireEthicLegacy { - pub id: i32, + pub ethic_id: i32, pub display: String, pub machine: bool, pub fanatic: bool,