We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca8f4aa commit 35f9f43Copy full SHA for 35f9f43
src/handlers/api.rs
@@ -514,17 +514,17 @@ pub async fn boltcard_keys(
514
515
let on_existing = params.get("onExisting").map(|s| s.as_str());
516
517
- // Get location by ID (the path parameter is the location ID)
+ // Get location by write token
518
let location = state
519
.db
520
- .get_location(&write_token)
+ .get_location_by_write_token(&write_token)
521
.await
522
.map_err(|e| {
523
tracing::error!("Failed to get location: {}", e);
524
StatusCode::INTERNAL_SERVER_ERROR
525
})?
526
.ok_or_else(|| {
527
- tracing::warn!("Location not found: {}", write_token);
+ tracing::warn!("Location not found for write token: {}", write_token);
528
StatusCode::NOT_FOUND
529
})?;
530
0 commit comments