Skip to content

Commit

Permalink
fix: add description field
Browse files Browse the repository at this point in the history
  • Loading branch information
rruckley committed Feb 7, 2025
1 parent fc3aa8a commit 4de7840
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tmf620/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ impl EventPayload<CatalogEvent> for Catalog {
fn to_event(&self,event_type : CatalogEventType) -> Event<CatalogEvent,CatalogEventType> {
let now = Utc::now();
let event_time = chrono::DateTime::from_timestamp(now.timestamp(),0).unwrap();
let desc = format!("{:?} for {}",event_type,self.get_name());
Event {
correlation_id: None,
description: None,
description: Some(desc),
domain: Some(Catalog::get_class()),
event_id: Uuid::new_v4().to_string(),
field_path: None,
Expand Down

0 comments on commit 4de7840

Please sign in to comment.