fix: update send_verification_email endpoint to return a json type

This commit is contained in:
qaz741wsd856 2025-11-29 16:29:59 +00:00
parent f89ac7a8b2
commit 8015ceb37d

View file

@ -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<Json<String>, AppError> {
Ok(Json("fixed-token-to-mock".to_string()))
}
#[worker::send]