diff --git a/src/main.rs b/src/main.rs index 6b3249e..b615d98 100644 --- a/src/main.rs +++ b/src/main.rs @@ -68,7 +68,9 @@ async fn rocket() -> _ { routes::item::transaction_route, routes::item::inventory_route, routes::item::variant_stat_route, - routes::item::unique_field_route + routes::item::unique_field_route, + routes::item::location_info, + routes::item::locations_info ], ) .manage(itemdb) diff --git a/src/transaction.rs b/src/transaction.rs index e0dc75d..2c4e283 100644 --- a/src/transaction.rs +++ b/src/transaction.rs @@ -67,7 +67,7 @@ impl Transaction { consumed: None, origin: origin.map(std::string::ToString::to_string), location: if let Some(location) = location { - reference_of!(Location, location) + reference_of!(Location, location).await } else { None },