From aaa172fb9544c5c955fa3e944cf45be408b13404 Mon Sep 17 00:00:00 2001 From: Matthew Plant Date: Mon, 31 Jul 2023 16:02:24 -0400 Subject: [PATCH] Fix bad insert --- mobile_verifier/src/heartbeats.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mobile_verifier/src/heartbeats.rs b/mobile_verifier/src/heartbeats.rs index 6eeb23a01..f3ec21258 100644 --- a/mobile_verifier/src/heartbeats.rs +++ b/mobile_verifier/src/heartbeats.rs @@ -389,7 +389,7 @@ impl Heartbeat { Ok( sqlx::query_scalar( r#" - INSERT INTO heartbeats (cbsd_id, hotspot_key, cell_type, first_timestamp, latest_timestamp, truncated_timestamp, coverage_object) + INSERT INTO heartbeats (cbsd_id, hotspot_key, cell_type, latest_timestamp, truncated_timestamp, coverage_object) VALUES ($1, $2, $3, $4, $5, $6) ON CONFLICT (cbsd_id, truncated_timestamp) DO UPDATE SET latest_timestamp = EXCLUDED.latest_timestamp @@ -401,7 +401,6 @@ impl Heartbeat { .bind(self.hotspot_key) .bind(self.cell_type.unwrap()) .bind(self.timestamp) - .bind(self.timestamp) .bind(truncated_timestamp) .bind(self.coverage_object) .fetch_one(&mut *exec)