diff --git a/beam_common_inventory/src/apis/default_api.rs b/beam_common_inventory/src/apis/default_api.rs index aff58c9..3fc4118 100644 --- a/beam_common_inventory/src/apis/default_api.rs +++ b/beam_common_inventory/src/apis/default_api.rs @@ -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) ); @@ -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?; @@ -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?; diff --git a/bevy_forge/src/beam/inventory.rs b/bevy_forge/src/beam/inventory.rs index 4fa2cde..6c8088d 100644 --- a/bevy_forge/src/beam/inventory.rs +++ b/bevy_forge/src/beam/inventory.rs @@ -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);