Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
EvolveArt committed Nov 14, 2024
1 parent 662d29a commit 130cc8e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pragma-node/src/types/entries.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::fs;

use pragma_entities::EntryError;
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;
Expand Down Expand Up @@ -198,10 +196,5 @@ where
let entry = types["Entry"].as_array_mut().unwrap();
entry.push(serde_json::json!({"name": "expiration_timestamp", "type": "timestamp"}));
}
fs::write(
"message.json",
serde_json::to_string_pretty(&raw_message_json).unwrap(),
)
.unwrap();
serde_json::from_value(raw_message_json).map_err(|e| EntryError::BuildPublish(e.to_string()))
}

0 comments on commit 130cc8e

Please sign in to comment.