Skip to content

Commit

Permalink
Make getting inventory work
Browse files Browse the repository at this point in the history
  • Loading branch information
Leinnan committed Feb 20, 2024
1 parent 717c8b2 commit 45897d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion beam_common_inventory/src/apis/default_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub async fn object_inventory_object_id_get(
let local_var_client = &local_var_configuration.client;

let local_var_uri_str = format!(
"{}/object/inventory/{objectId}/",
"{}/object/inventory/{objectId}",
local_var_configuration.base_path,
objectId = crate::apis::urlencode(object_id)
);
Expand All @@ -110,6 +110,9 @@ pub async fn object_inventory_object_id_get(
};
local_var_req_builder = local_var_req_builder.header("X-DE-SCOPE", local_var_value);
};
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
};

let local_var_req = local_var_req_builder.build()?;
let local_var_resp = local_var_client.execute(local_var_req).await?;
Expand Down Expand Up @@ -160,6 +163,9 @@ pub async fn object_inventory_object_id_multipliers_get(
};
local_var_req_builder = local_var_req_builder.header("X-DE-SCOPE", local_var_value);
};
if let Some(ref local_var_token) = local_var_configuration.bearer_access_token {
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
};

let local_var_req = local_var_req_builder.build()?;
let local_var_resp = local_var_client.execute(local_var_req).await?;
Expand Down
1 change: 1 addition & 0 deletions bevy_forge/src/beam/inventory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ impl Command for InventoryGetCommand {
config.bearer_access_token = Some(access_token.clone());
}
}

let id = context.id.to_string();
#[cfg(target_family = "wasm")]
let (tx, task) = crossbeam_channel::bounded(1);
Expand Down

0 comments on commit 45897d2

Please sign in to comment.