Skip to content

Commit 35f9f43

Browse files
committed
fix: programming
1 parent ca8f4aa commit 35f9f43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/handlers/api.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,17 +514,17 @@ pub async fn boltcard_keys(
514514

515515
let on_existing = params.get("onExisting").map(|s| s.as_str());
516516

517-
// Get location by ID (the path parameter is the location ID)
517+
// Get location by write token
518518
let location = state
519519
.db
520-
.get_location(&write_token)
520+
.get_location_by_write_token(&write_token)
521521
.await
522522
.map_err(|e| {
523523
tracing::error!("Failed to get location: {}", e);
524524
StatusCode::INTERNAL_SERVER_ERROR
525525
})?
526526
.ok_or_else(|| {
527-
tracing::warn!("Location not found: {}", write_token);
527+
tracing::warn!("Location not found for write token: {}", write_token);
528528
StatusCode::NOT_FOUND
529529
})?;
530530

0 commit comments

Comments
 (0)