From 59bab750f752382423d4804da84070aa1253376d Mon Sep 17 00:00:00 2001 From: Brian Balser Date: Fri, 25 Jul 2025 09:19:24 -0400 Subject: [PATCH] Update query to only pull one record per entity_key in mobile-config --- mobile_config/src/mobile_radio_tracker.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile_config/src/mobile_radio_tracker.rs b/mobile_config/src/mobile_radio_tracker.rs index 042040f4c..9cd5c6021 100644 --- a/mobile_config/src/mobile_radio_tracker.rs +++ b/mobile_config/src/mobile_radio_tracker.rs @@ -227,7 +227,7 @@ fn get_all_mobile_radios(metadata: &Pool) -> impl Stream( r#" SELECT - DISTINCT ON (kta.entity_key, mhi.asset) + DISTINCT ON (kta.entity_key) kta.entity_key, mhi.asset, mhi.refreshed_at, @@ -244,7 +244,7 @@ fn get_all_mobile_radios(metadata: &Pool) -> impl Stream