diff --git a/src/handlers/accounts.rs b/src/handlers/accounts.rs index a03a16b..62ab338 100644 --- a/src/handlers/accounts.rs +++ b/src/handlers/accounts.rs @@ -110,8 +110,8 @@ pub async fn register( } #[worker::send] -pub async fn send_verification_email() -> String { - "fixed-token-to-mock".to_string() +pub async fn send_verification_email() -> Result, AppError> { + Ok(Json("fixed-token-to-mock".to_string())) } #[worker::send]