Skip to content

Commit

Permalink
Fix bad insert
Browse files Browse the repository at this point in the history
  • Loading branch information
maplant committed Jul 31, 2023
1 parent f4ca43e commit aaa172f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mobile_verifier/src/heartbeats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit aaa172f

Please sign in to comment.