diff --git a/Cargo.lock b/Cargo.lock
index ebbe9def5..5aa78909a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1147,6 +1147,7 @@ dependencies = [
"dashmap",
"evalexpr",
"hex",
+ "moka",
"nostr",
"reqwest 0.13.3",
"serde",
diff --git a/crates/buzz-db/src/lib.rs b/crates/buzz-db/src/lib.rs
index eafd376eb..69150aaad 100644
--- a/crates/buzz-db/src/lib.rs
+++ b/crates/buzz-db/src/lib.rs
@@ -1758,12 +1758,13 @@ impl Db {
}
/// Delete a workflow only when it belongs to the provided owner.
+ /// Returns the deleted workflow's `channel_id`.
pub async fn delete_workflow_for_owner(
&self,
community_id: CommunityId,
id: Uuid,
owner_pubkey: &[u8],
- ) -> Result<()> {
+ ) -> Result