diff --git a/crates/izlek-web/src/board.rs b/crates/izlek-web/src/board.rs
index 73e79cb..ffefb26 100644
--- a/crates/izlek-web/src/board.rs
+++ b/crates/izlek-web/src/board.rs
@@ -85,7 +85,7 @@ pub async fn create_task(
return Ok(Some(Refusal::Forbidden));
}
- store
+ let created = store
.create_task(NewTask {
board_id: &board.id,
column_id: &column_id,
@@ -96,6 +96,7 @@ pub async fn create_task(
})
.await
.map_err(fail)?;
+ crate::server::mail().after_activity(store, created.activity_id);
Ok(None)
}
diff --git a/crates/izlek-web/src/detail.rs b/crates/izlek-web/src/detail.rs
index 1e719da..8842f2a 100644
--- a/crates/izlek-web/src/detail.rs
+++ b/crates/izlek-web/src/detail.rs
@@ -268,7 +268,7 @@ pub async fn assign(task_id: String, user_id: String) -> Result