This commit is contained in:
JMARyA 2024-09-02 18:43:42 +02:00
parent 48f00d8f6f
commit 2a7e963869
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 4 additions and 2 deletions

View file

@ -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)

View file

@ -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
},