fix: update send_verification_email endpoint to return a json type
This commit is contained in:
parent
f89ac7a8b2
commit
8015ceb37d
1 changed files with 2 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue