schema change for compat reasons on frontend
This commit is contained in:
parent
cf36c8205b
commit
849b82cef4
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Reference in a new issue