From 8015ceb37dc72d3114f65471afda99a9bf5b3b4d Mon Sep 17 00:00:00 2001 From: qaz741wsd856 Date: Sat, 29 Nov 2025 16:29:59 +0000 Subject: [PATCH] fix: update send_verification_email endpoint to return a json type --- src/handlers/accounts.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]