YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: use fully qualified axum::extract::State in stats handler
Louis Beaumontaa76e1e7043b
diff --git a/crates/screenpipe-engine/src/server.rs b/crates/screenpipe-engine/src/server.rsindex 71997a5ca..be1a370e7 100644--- a/crates/screenpipe-engine/src/server.rs+++ b/crates/screenpipe-engine/src/server.rs@@ -165,7 +165,7 @@ pub struct AppState {}async fn stats_handler(- State(state): State<Arc<AppState>>,+ axum::extract::State(state): axum::extract::State<Arc<AppState>>,) -> axum::Json<crate::stats::UserStats> {axum::Json(crate::stats::get_stats(&state.db).await)}