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]
|
#[worker::send]
|
||||||
pub async fn send_verification_email() -> String {
|
pub async fn send_verification_email() -> Result<Json<String>, AppError> {
|
||||||
"fixed-token-to-mock".to_string()
|
Ok(Json("fixed-token-to-mock".to_string()))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[worker::send]
|
#[worker::send]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue