From b5158e1e8362dd5a6ea5bb0b751ec356e44f3f54 Mon Sep 17 00:00:00 2001 From: Mubelotix Date: Tue, 5 Aug 2025 16:49:54 +0200 Subject: [PATCH] Fix cli webhook getting stored in dumps --- crates/dump/src/writer.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/dump/src/writer.rs b/crates/dump/src/writer.rs index 84a76e483..448896e06 100644 --- a/crates/dump/src/writer.rs +++ b/crates/dump/src/writer.rs @@ -75,10 +75,11 @@ impl DumpWriter { Ok(std::fs::write(self.dir.path().join("network.json"), serde_json::to_string(&network)?)?) } - pub fn create_webhooks(&self, webhooks: Webhooks) -> Result<()> { + pub fn create_webhooks(&self, mut webhooks: Webhooks) -> Result<()> { if webhooks == Webhooks::default() { return Ok(()); } + webhooks.webhooks.remove(&Uuid::nil()); // Don't store the cli webhook Ok(std::fs::write( self.dir.path().join("webhooks.json"), serde_json::to_string(&webhooks)?,