Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maplant committed Aug 8, 2023
1 parent a662860 commit 49c2f1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion mobile_verifier/migrations/15_modeled_coverage.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ CREATE TABLE hex_coverage (
cbsd_id TEXT NOT NULL,
signal_level signal_level NOT NULL,
coverage_claim_time TIMESTAMPTZ NOT NULL,
inserted_at TIMESTAMPTZ NOT NULL,
inserted_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
PRIMARY KEY (uuid, hex)
);

CREATE TABLE seniority (
cbsd_id TEXT NOT NULL,
seniority_ts TIMESTAMPTZ NOT NULL,
inserted_at TIMESTAMPTZ NOT NULL,
last_heartbeat TIMESTAMPTZ NOT NULL,
uuid UUID NOT NULL,
PRIMARY KEY (cbsd_id, seniority_ts)
Expand Down
5 changes: 2 additions & 3 deletions mobile_verifier/src/coverage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ impl CoverageObject {
sqlx::query(
r#"
INSERT INTO hex_coverage
(uuid, hex, indoor, cbsd_id, signal_level, coverage_claim_time, inserted_at)
(uuid, hex, indoor, cbsd_id, signal_level, coverage_claim_time)
VALUES
($1, $2, $3, $4, $5, $6, $7)
($1, $2, $3, $4, $5, $6)
"#,
)
.bind(self.coverage_obj.uuid)
Expand All @@ -187,7 +187,6 @@ impl CoverageObject {
.bind(&self.coverage_obj.cbsd_id)
.bind(SignalLevel::from(hex.signal_level))
.bind(self.coverage_obj.coverage_claim_time)
.bind(Utc::now())
.execute(&mut *transaction)
.await?;
}
Expand Down

0 comments on commit 49c2f1e

Please sign in to comment.