Skip to content

Commit

Permalink
🚑️ Make account_database_ids optional
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenein committed Jun 29, 2023
1 parent bad56d0 commit f1cddbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/models/data/base_player_create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub struct BasePlayerCreate {
pub player_wait_times: Option<HashMap<u32, f64>>,

#[serde(rename(deserialize = "accountDatabaseIds"))]
pub account_database_ids: Vec<u32>,
pub account_database_ids: Option<Vec<u32>>,

#[serde(default, rename(deserialize = "turboBattlesStats"))]
pub turbo_battles_statistics: Option<TurboBattlesStatistics>,
Expand Down
4 changes: 2 additions & 2 deletions tests/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ fn base_player_create_ok() -> Result<()> {
);
assert_eq!(
arguments.account_database_ids,
[
Some(vec![
517033644, 537867068, 597583401, 601893865, 576810156, 531053956, 599580824, 558025185,
526927603, 594778041, 505587490, 597422303, 531923111, 587617355
]
])
);

Ok(())
Expand Down

0 comments on commit f1cddbe

Please sign in to comment.