Skip to content

Commit

Permalink
Remove router_data from DynamoDbUser
Browse files Browse the repository at this point in the history
The associated validation is not included, so it is unused.
  • Loading branch information
AzureMarker committed Jun 22, 2020
1 parent 7edbd7b commit dad74ae
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions autopush-common/src/db/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ pub struct DynamoDbUser {
pub connected_at: u64,
// Router type of the user
pub router_type: String,
// Router-specific data
#[serde(skip_serializing_if = "Option::is_none")]
pub router_data: Option<HashMap<String, serde_json::Value>>,
// Keyed time in a month the user last connected at with limited key range for indexing
#[serde(skip_serializing_if = "Option::is_none")]
pub last_connect: Option<u64>,
Expand All @@ -102,7 +99,6 @@ impl Default for DynamoDbUser {
uaid,
connected_at: ms_since_epoch(),
router_type: "webpush".to_string(),
router_data: None,
last_connect: Some(generate_last_connect()),
node_id: None,
record_version: Some(USER_RECORD_VERSION),
Expand Down

0 comments on commit dad74ae

Please sign in to comment.