Skip to content

Commit

Permalink
replace none with empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
jbesraa committed Nov 6, 2023
1 parent 063e8ef commit dcff831
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fplus-lib/src/core/application/lifecycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ impl LifeCycle {
}

pub fn reached_total_datacap(self) -> Self {
let empty = "".to_string();

LifeCycle {
is_active: false,
updated_at: Utc::now().to_string(),
active_request: None,
active_request: Some(empty),
..self
}
}
Expand All @@ -94,7 +96,7 @@ impl LifeCycle {
validated_at: empty.clone(),
validated_by: empty.clone(),
updated_at: Utc::now().to_string(),
active_request: None,
active_request: Some(empty),
..self
}
}
Expand Down

0 comments on commit dcff831

Please sign in to comment.