fix: fixed handling of new beacons

This commit is contained in:
Andrew Rioux
2025-02-23 02:00:38 -05:00
parent e0af4ad291
commit ceb4aa808e
3 changed files with 9 additions and 6 deletions

View File

@@ -469,7 +469,8 @@ async fn handle_listener_events(
category_ids: category_ids.iter().map(|r| r.category_id).collect()
};
socket.send(ws::Message::Text(serde_json::to_string(&beacon)?)).await?;
let json = serde_json::to_string(&SidebarEvents::NewBeacon(beacon))?;
socket.send(ws::Message::Text(json)).await?;
}
Err(e) => {
tracing::warn!("Unable to handle general event: {e:?}");