schema change for compat reasons on frontend

This commit is contained in:
Neshura 2023-09-07 21:54:52 +02:00
parent cf36c8205b
commit 849b82cef4
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 2 additions and 2 deletions

View file

@ -220,7 +220,7 @@ pub(crate) async fn full_view_data(data: web::Data<AppState>) -> impl Responder
let id = empire_ethic.empire_id; let id = empire_ethic.empire_id;
let new_data = schemas::EmpireEthicLegacy { 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(), display: parsed_data.ethics[&empire_ethic.ethics_id].display.clone(),
machine: parsed_data.ethics[&empire_ethic.ethics_id].machine, machine: parsed_data.ethics[&empire_ethic.ethics_id].machine,
fanatic: empire_ethic.fanatic, fanatic: empire_ethic.fanatic,

View file

@ -230,7 +230,7 @@ pub struct EmpireEthic {
#[derive(Serialize, ToSchema, Debug, Clone)] #[derive(Serialize, ToSchema, Debug, Clone)]
pub struct EmpireEthicLegacy { pub struct EmpireEthicLegacy {
pub id: i32, pub ethic_id: i32,
pub display: String, pub display: String,
pub machine: bool, pub machine: bool,
pub fanatic: bool, pub fanatic: bool,