Fix old SMTPTransport
This commit is contained in:
parent
8142abd87e
commit
41faaea9b0
@ -1,6 +1,6 @@
|
||||
use actix_web::{error, web, HttpResponse};
|
||||
use handlebars::Handlebars;
|
||||
use lettre::SmtpTransport;
|
||||
use lettre::{AsyncSmtpTransport, Tokio1Executor};
|
||||
use serde_json::json;
|
||||
use terminwahl_typen::IdType;
|
||||
|
||||
@ -14,7 +14,7 @@ use crate::{
|
||||
|
||||
pub async fn confirm_validation_key(
|
||||
pool: web::Data<Pool>,
|
||||
_mailer: web::Data<SmtpTransport>,
|
||||
_mailer: web::Data<AsyncSmtpTransport<Tokio1Executor>>,
|
||||
css: web::Data<CssPath>,
|
||||
handlebars: web::Data<Handlebars<'_>>,
|
||||
validation_key: web::Path<String>,
|
||||
@ -34,7 +34,7 @@ pub async fn confirm_validation_key(
|
||||
|
||||
pub async fn delete_appointment(
|
||||
pool: web::Data<Pool>,
|
||||
_mailer: web::Data<SmtpTransport>,
|
||||
_mailer: web::Data<AsyncSmtpTransport<Tokio1Executor>>,
|
||||
handlebars: web::Data<Handlebars<'_>>,
|
||||
css: web::Data<CssPath>,
|
||||
path: web::Path<(IdType, IdType, String)>,
|
||||
|
Loading…
Reference in New Issue
Block a user