Fix old SMTPTransport

This commit is contained in:
Franz Dietrich 2023-02-05 14:35:27 +01:00
parent 8142abd87e
commit 41faaea9b0
Signed by: dietrich
GPG Key ID: F0CE5A20AB5C4B27

View File

@ -1,6 +1,6 @@
use actix_web::{error, web, HttpResponse}; use actix_web::{error, web, HttpResponse};
use handlebars::Handlebars; use handlebars::Handlebars;
use lettre::SmtpTransport; use lettre::{AsyncSmtpTransport, Tokio1Executor};
use serde_json::json; use serde_json::json;
use terminwahl_typen::IdType; use terminwahl_typen::IdType;
@ -14,7 +14,7 @@ use crate::{
pub async fn confirm_validation_key( pub async fn confirm_validation_key(
pool: web::Data<Pool>, pool: web::Data<Pool>,
_mailer: web::Data<SmtpTransport>, _mailer: web::Data<AsyncSmtpTransport<Tokio1Executor>>,
css: web::Data<CssPath>, css: web::Data<CssPath>,
handlebars: web::Data<Handlebars<'_>>, handlebars: web::Data<Handlebars<'_>>,
validation_key: web::Path<String>, validation_key: web::Path<String>,
@ -34,7 +34,7 @@ pub async fn confirm_validation_key(
pub async fn delete_appointment( pub async fn delete_appointment(
pool: web::Data<Pool>, pool: web::Data<Pool>,
_mailer: web::Data<SmtpTransport>, _mailer: web::Data<AsyncSmtpTransport<Tokio1Executor>>,
handlebars: web::Data<Handlebars<'_>>, handlebars: web::Data<Handlebars<'_>>,
css: web::Data<CssPath>, css: web::Data<CssPath>,
path: web::Path<(IdType, IdType, String)>, path: web::Path<(IdType, IdType, String)>,