Skip to content

Commit

Permalink
self described field not null
Browse files Browse the repository at this point in the history
  • Loading branch information
dynco-nym committed Oct 30, 2024
1 parent f6105c9 commit 452ce3d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nym-node-status-api/migrations/000_init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CREATE TABLE gateways
(
id INTEGER PRIMARY KEY AUTOINCREMENT,
gateway_identity_key VARCHAR NOT NULL UNIQUE,
self_described VARCHAR,
self_described VARCHAR NOT NULL,
explorer_pretty_bond VARCHAR,
last_probe_result VARCHAR,
last_probe_log VARCHAR,
Expand Down
2 changes: 1 addition & 1 deletion nym-node-status-api/src/db/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub(crate) struct GatewayRecord {
pub(crate) identity_key: String,
pub(crate) bonded: bool,
pub(crate) blacklisted: bool,
pub(crate) self_described: Option<String>,
pub(crate) self_described: String,
pub(crate) explorer_pretty_bond: Option<String>,
pub(crate) last_updated_utc: i64,
pub(crate) performance: u8,
Expand Down
3 changes: 1 addition & 2 deletions nym-node-status-api/src/monitor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,7 @@ fn prepare_gateway_data(
identity_key: identity_key.to_owned(),
bonded,
blacklisted,
// TODO dz shouldn't be an option
self_described: Some(self_described),
self_described,
explorer_pretty_bond,
last_updated_utc,
performance,
Expand Down

0 comments on commit 452ce3d

Please sign in to comment.