fix: suppress dead_code warnings with #[allow(dead_code)]
This commit is contained in:
parent
3faa23250c
commit
04f9ab52fa
16 changed files with 34 additions and 25 deletions
|
|
@ -122,7 +122,7 @@ async fn list_requirements(
|
||||||
|
|
||||||
async fn create_requirement(
|
async fn create_requirement(
|
||||||
State(state): State<AppState>,
|
State(state): State<AppState>,
|
||||||
auth: AuthUser,
|
_auth: AuthUser,
|
||||||
Json(payload): Json<CreateRequirementRequest>,
|
Json(payload): Json<CreateRequirementRequest>,
|
||||||
) -> impl IntoResponse {
|
) -> impl IntoResponse {
|
||||||
let p_date = payload.preferred_date.and_then(|d| chrono::NaiveDate::parse_from_str(&d, "%Y-%m-%d").ok());
|
let p_date = payload.preferred_date.and_then(|d| chrono::NaiveDate::parse_from_str(&d, "%Y-%m-%d").ok());
|
||||||
|
|
@ -256,7 +256,7 @@ async fn list_requests(
|
||||||
async fn approve_request(
|
async fn approve_request(
|
||||||
State(state): State<AppState>,
|
State(state): State<AppState>,
|
||||||
Path(lead_id): Path<Uuid>,
|
Path(lead_id): Path<Uuid>,
|
||||||
auth: AuthUser,
|
_auth: AuthUser,
|
||||||
) -> impl IntoResponse {
|
) -> impl IntoResponse {
|
||||||
let lead = match LeadRequestRepository::get_by_id(&state.pool, lead_id).await {
|
let lead = match LeadRequestRepository::get_by_id(&state.pool, lead_id).await {
|
||||||
Ok(Some(l)) => l,
|
Ok(Some(l)) => l,
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ pub struct JobBrowseQuery {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
|
#[allow(dead_code)]
|
||||||
pub struct ApplyRequest {
|
pub struct ApplyRequest {
|
||||||
pub cover_note: Option<String>,
|
pub cover_note: Option<String>,
|
||||||
pub resume_url: Option<String>,
|
pub resume_url: Option<String>,
|
||||||
|
|
@ -278,7 +279,7 @@ async fn list_my_applications(
|
||||||
auth: AuthUser,
|
auth: AuthUser,
|
||||||
Query(q): Query<PaginationQuery>,
|
Query(q): Query<PaginationQuery>,
|
||||||
) -> impl IntoResponse {
|
) -> impl IntoResponse {
|
||||||
let seeker = match JobSeekerRepository::get_by_user_id(&state.pool, auth.user_id).await {
|
let _seeker = match JobSeekerRepository::get_by_user_id(&state.pool, auth.user_id).await {
|
||||||
Ok(Some(s)) => s,
|
Ok(Some(s)) => s,
|
||||||
_ => return (StatusCode::NOT_FOUND, "Job seeker profile not found").into_response(),
|
_ => return (StatusCode::NOT_FOUND, "Job seeker profile not found").into_response(),
|
||||||
};
|
};
|
||||||
|
|
@ -300,7 +301,7 @@ async fn get_my_application(
|
||||||
auth: AuthUser,
|
auth: AuthUser,
|
||||||
Path(id): Path<Uuid>,
|
Path(id): Path<Uuid>,
|
||||||
) -> impl IntoResponse {
|
) -> impl IntoResponse {
|
||||||
let seeker = match JobSeekerRepository::get_by_user_id(&state.pool, auth.user_id).await {
|
let _seeker = match JobSeekerRepository::get_by_user_id(&state.pool, auth.user_id).await {
|
||||||
Ok(Some(s)) => s,
|
Ok(Some(s)) => s,
|
||||||
_ => return (StatusCode::NOT_FOUND, "Job seeker profile not found").into_response(),
|
_ => return (StatusCode::NOT_FOUND, "Job seeker profile not found").into_response(),
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ async fn list_lead_requests(
|
||||||
|
|
||||||
async fn send_lead_request(
|
async fn send_lead_request(
|
||||||
State(state): State<Arc<AppState>>,
|
State(state): State<Arc<AppState>>,
|
||||||
axum::extract::ConnectInfo(addr): axum::extract::ConnectInfo<std::net::SocketAddr>,
|
axum::extract::ConnectInfo(_addr): axum::extract::ConnectInfo<std::net::SocketAddr>,
|
||||||
Json(payload): Json<SendLeadRequestPayload>,
|
Json(payload): Json<SendLeadRequestPayload>,
|
||||||
) -> impl IntoResponse {
|
) -> impl IntoResponse {
|
||||||
let user_id = Uuid::parse_str("00000000-0000-0000-0000-000000000001").unwrap_or_default();
|
let user_id = Uuid::parse_str("00000000-0000-0000-0000-000000000001").unwrap_or_default();
|
||||||
|
|
@ -275,7 +275,7 @@ async fn send_lead_request(
|
||||||
async fn accept_lead_request(
|
async fn accept_lead_request(
|
||||||
State(state): State<Arc<AppState>>,
|
State(state): State<Arc<AppState>>,
|
||||||
Path(id): Path<Uuid>,
|
Path(id): Path<Uuid>,
|
||||||
axum::extract::ConnectInfo(addr): axum::extract::ConnectInfo<std::net::SocketAddr>,
|
axum::extract::ConnectInfo(_addr): axum::extract::ConnectInfo<std::net::SocketAddr>,
|
||||||
) -> impl IntoResponse {
|
) -> impl IntoResponse {
|
||||||
let user_id = Uuid::parse_str("00000000-0000-0000-0000-000000000001").unwrap_or_default();
|
let user_id = Uuid::parse_str("00000000-0000-0000-0000-000000000001").unwrap_or_default();
|
||||||
|
|
||||||
|
|
@ -372,7 +372,7 @@ async fn accept_lead_request(
|
||||||
async fn reject_lead_request(
|
async fn reject_lead_request(
|
||||||
State(state): State<Arc<AppState>>,
|
State(state): State<Arc<AppState>>,
|
||||||
Path(id): Path<Uuid>,
|
Path(id): Path<Uuid>,
|
||||||
axum::extract::ConnectInfo(addr): axum::extract::ConnectInfo<std::net::SocketAddr>,
|
axum::extract::ConnectInfo(_addr): axum::extract::ConnectInfo<std::net::SocketAddr>,
|
||||||
) -> impl IntoResponse {
|
) -> impl IntoResponse {
|
||||||
let user_id = Uuid::parse_str("00000000-0000-0000-0000-000000000001").unwrap_or_default();
|
let user_id = Uuid::parse_str("00000000-0000-0000-0000-000000000001").unwrap_or_default();
|
||||||
|
|
||||||
|
|
@ -436,7 +436,7 @@ async fn reject_lead_request(
|
||||||
async fn my_requests(
|
async fn my_requests(
|
||||||
State(state): State<Arc<AppState>>,
|
State(state): State<Arc<AppState>>,
|
||||||
Query(q): Query<PaginationQuery>,
|
Query(q): Query<PaginationQuery>,
|
||||||
axum::extract::ConnectInfo(addr): axum::extract::ConnectInfo<std::net::SocketAddr>,
|
axum::extract::ConnectInfo(_addr): axum::extract::ConnectInfo<std::net::SocketAddr>,
|
||||||
) -> impl IntoResponse {
|
) -> impl IntoResponse {
|
||||||
let user_id = Uuid::parse_str("00000000-0000-0000-0000-000000000001").unwrap_or_default();
|
let user_id = Uuid::parse_str("00000000-0000-0000-0000-000000000001").unwrap_or_default();
|
||||||
let page = q.page.unwrap_or(1);
|
let page = q.page.unwrap_or(1);
|
||||||
|
|
@ -476,7 +476,7 @@ async fn my_requests(
|
||||||
|
|
||||||
async fn my_pending_requests(
|
async fn my_pending_requests(
|
||||||
State(state): State<Arc<AppState>>,
|
State(state): State<Arc<AppState>>,
|
||||||
axum::extract::ConnectInfo(addr): axum::extract::ConnectInfo<std::net::SocketAddr>,
|
axum::extract::ConnectInfo(_addr): axum::extract::ConnectInfo<std::net::SocketAddr>,
|
||||||
) -> impl IntoResponse {
|
) -> impl IntoResponse {
|
||||||
let user_id = Uuid::parse_str("00000000-0000-0000-0000-000000000001").unwrap_or_default();
|
let user_id = Uuid::parse_str("00000000-0000-0000-0000-000000000001").unwrap_or_default();
|
||||||
|
|
||||||
|
|
@ -506,7 +506,7 @@ async fn get_customer_lead_requests(
|
||||||
State(state): State<Arc<AppState>>,
|
State(state): State<Arc<AppState>>,
|
||||||
Path(lead_id): Path<Uuid>,
|
Path(lead_id): Path<Uuid>,
|
||||||
Query(q): Query<PaginationQuery>,
|
Query(q): Query<PaginationQuery>,
|
||||||
axum::extract::ConnectInfo(addr): axum::extract::ConnectInfo<std::net::SocketAddr>,
|
axum::extract::ConnectInfo(_addr): axum::extract::ConnectInfo<std::net::SocketAddr>,
|
||||||
) -> impl IntoResponse {
|
) -> impl IntoResponse {
|
||||||
let user_id = Uuid::parse_str("00000000-0000-0000-0000-000000000001").unwrap_or_default();
|
let user_id = Uuid::parse_str("00000000-0000-0000-0000-000000000001").unwrap_or_default();
|
||||||
let page = q.page.unwrap_or(1);
|
let page = q.page.unwrap_or(1);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ use sqlx::FromRow;
|
||||||
pub mod packages;
|
pub mod packages;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
struct AppState {
|
pub struct AppState {
|
||||||
beeceptor_url: String,
|
beeceptor_url: String,
|
||||||
client: reqwest::Client,
|
client: reqwest::Client,
|
||||||
pool: PgPool,
|
pool: PgPool,
|
||||||
|
|
@ -66,6 +66,7 @@ struct PricingPackageRow {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, FromRow)]
|
#[derive(Debug, FromRow)]
|
||||||
|
#[allow(dead_code)]
|
||||||
struct PaymentRow {
|
struct PaymentRow {
|
||||||
id: Uuid,
|
id: Uuid,
|
||||||
user_id: Uuid,
|
user_id: Uuid,
|
||||||
|
|
|
||||||
|
|
@ -271,7 +271,7 @@ async fn update_package(
|
||||||
.fetch_optional(&state.pool)
|
.fetch_optional(&state.pool)
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
let existing = match existing {
|
let _existing = match existing {
|
||||||
Ok(Some(e)) => e,
|
Ok(Some(e)) => e,
|
||||||
Ok(None) => return (StatusCode::NOT_FOUND, "Package not found").into_response(),
|
Ok(None) => return (StatusCode::NOT_FOUND, "Package not found").into_response(),
|
||||||
Err(e) => return (StatusCode::INTERNAL_SERVER_ERROR, e.to_string()).into_response(),
|
Err(e) => return (StatusCode::INTERNAL_SERVER_ERROR, e.to_string()).into_response(),
|
||||||
|
|
|
||||||
|
|
@ -419,6 +419,7 @@ async fn send_test_email(
|
||||||
// ── SMTP Configuration ───────────────────────────────────────────────────────
|
// ── SMTP Configuration ───────────────────────────────────────────────────────
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Serialize, Deserialize)]
|
||||||
|
#[allow(dead_code)]
|
||||||
struct SmtpConfig {
|
struct SmtpConfig {
|
||||||
host: String,
|
host: String,
|
||||||
port: i32,
|
port: i32,
|
||||||
|
|
@ -461,6 +462,7 @@ async fn get_smtp_config() -> impl IntoResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
|
#[allow(dead_code)]
|
||||||
struct UpdateSmtpConfigRequest {
|
struct UpdateSmtpConfigRequest {
|
||||||
host: String,
|
host: String,
|
||||||
port: i32,
|
port: i32,
|
||||||
|
|
@ -507,6 +509,7 @@ struct SmtpTestRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
|
#[allow(dead_code)]
|
||||||
struct SmtpTestConfig {
|
struct SmtpTestConfig {
|
||||||
host: String,
|
host: String,
|
||||||
port: i32,
|
port: i32,
|
||||||
|
|
@ -542,7 +545,7 @@ async fn test_smtp_connection(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn create_test_mailer(config: SmtpTestConfig) -> email::Mailer {
|
async fn create_test_mailer(_config: SmtpTestConfig) -> email::Mailer {
|
||||||
// This is a simplified version - in production you'd create a new Mailer instance
|
// This is a simplified version - in production you'd create a new Mailer instance
|
||||||
// For now, we just return the default mailer
|
// For now, we just return the default mailer
|
||||||
email::Mailer::new()
|
email::Mailer::new()
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
use crate::AppState;
|
use crate::AppState;
|
||||||
use axum::{
|
use axum::{
|
||||||
extract::{Query, State},
|
extract::State,
|
||||||
http::StatusCode,
|
http::StatusCode,
|
||||||
response::IntoResponse,
|
response::IntoResponse,
|
||||||
routing::{get, post},
|
routing::{get, post},
|
||||||
|
|
@ -45,7 +45,7 @@ struct OllamaGenerateResponse {
|
||||||
response: String,
|
response: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn call_ollama(state: &AppState, model: &str, prompt: &str) -> Result<String, String> {
|
async fn call_ollama(_state: &AppState, model: &str, prompt: &str) -> Result<String, String> {
|
||||||
let base_url = std::env::var("OLLAMA_BASE_URL").unwrap_or_else(|_| "http://ollama.nxtgauge-ai.svc.cluster.local:11434".to_string());
|
let base_url = std::env::var("OLLAMA_BASE_URL").unwrap_or_else(|_| "http://ollama.nxtgauge-ai.svc.cluster.local:11434".to_string());
|
||||||
let url = format!("{}/api/generate", base_url);
|
let url = format!("{}/api/generate", base_url);
|
||||||
|
|
||||||
|
|
@ -288,7 +288,7 @@ struct ExtractedField {
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn ai_extract_form(
|
async fn ai_extract_form(
|
||||||
State(state): State<AppState>,
|
State(_state): State<AppState>,
|
||||||
Json(body): Json<FormExtractBody>,
|
Json(body): Json<FormExtractBody>,
|
||||||
) -> impl IntoResponse {
|
) -> impl IntoResponse {
|
||||||
let ollama_base = std::env::var("OLLAMA_BASE_URL").unwrap_or_else(|_| "http://ollama.nxtgauge-ai.svc.cluster.local:11434".to_string());
|
let ollama_base = std::env::var("OLLAMA_BASE_URL").unwrap_or_else(|_| "http://ollama.nxtgauge-ai.svc.cluster.local:11434".to_string());
|
||||||
|
|
@ -315,7 +315,7 @@ async fn ai_extract_form(
|
||||||
.unwrap_or_else(|_| serde_json::json!({}));
|
.unwrap_or_else(|_| serde_json::json!({}));
|
||||||
|
|
||||||
let mut fields = Vec::new();
|
let mut fields = Vec::new();
|
||||||
let mut missing_fields = Vec::new();
|
let missing_fields = Vec::new();
|
||||||
|
|
||||||
if let Some(obj) = extracted.as_object() {
|
if let Some(obj) = extracted.as_object() {
|
||||||
for (key, value) in obj {
|
for (key, value) in obj {
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ pub fn router() -> Router<AppState> {
|
||||||
// ── DTOs ──────────────────────────────────────────────────────────────────────
|
// ── DTOs ──────────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
|
#[allow(dead_code)]
|
||||||
pub struct RegisterPayload {
|
pub struct RegisterPayload {
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub first_name: Option<String>,
|
pub first_name: Option<String>,
|
||||||
|
|
|
||||||
|
|
@ -239,6 +239,7 @@ async fn get_my_runtime_config(
|
||||||
let role_key = auth.claims.active_role.clone().to_uppercase();
|
let role_key = auth.claims.active_role.clone().to_uppercase();
|
||||||
|
|
||||||
#[derive(sqlx::FromRow)]
|
#[derive(sqlx::FromRow)]
|
||||||
|
#[allow(dead_code)]
|
||||||
struct RoleRow {
|
struct RoleRow {
|
||||||
id: Uuid,
|
id: Uuid,
|
||||||
key: String,
|
key: String,
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,7 @@ struct ExistingCouponRow {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(sqlx::FromRow)]
|
#[derive(sqlx::FromRow)]
|
||||||
|
#[allow(dead_code)]
|
||||||
struct ValidateCouponRow {
|
struct ValidateCouponRow {
|
||||||
id: Uuid,
|
id: Uuid,
|
||||||
code: String,
|
code: String,
|
||||||
|
|
|
||||||
|
|
@ -523,6 +523,7 @@ async fn admin_delete_category(
|
||||||
Path(id): Path<Uuid>,
|
Path(id): Path<Uuid>,
|
||||||
) -> impl IntoResponse {
|
) -> impl IntoResponse {
|
||||||
#[derive(sqlx::FromRow)]
|
#[derive(sqlx::FromRow)]
|
||||||
|
#[allow(dead_code)]
|
||||||
struct IdRow { id: Uuid }
|
struct IdRow { id: Uuid }
|
||||||
|
|
||||||
let result = sqlx::query_as::<_, IdRow>(
|
let result = sqlx::query_as::<_, IdRow>(
|
||||||
|
|
@ -859,6 +860,7 @@ async fn admin_delete_article(
|
||||||
Path(id): Path<Uuid>,
|
Path(id): Path<Uuid>,
|
||||||
) -> impl IntoResponse {
|
) -> impl IntoResponse {
|
||||||
#[derive(sqlx::FromRow)]
|
#[derive(sqlx::FromRow)]
|
||||||
|
#[allow(dead_code)]
|
||||||
struct IdRow { id: Uuid }
|
struct IdRow { id: Uuid }
|
||||||
|
|
||||||
let result = sqlx::query_as::<_, IdRow>(
|
let result = sqlx::query_as::<_, IdRow>(
|
||||||
|
|
|
||||||
|
|
@ -267,7 +267,7 @@ async fn get_or_create_user_role_profile_id(
|
||||||
pool: &sqlx::PgPool,
|
pool: &sqlx::PgPool,
|
||||||
user_id: uuid::Uuid,
|
user_id: uuid::Uuid,
|
||||||
role_key: &str,
|
role_key: &str,
|
||||||
role_id: uuid::Uuid,
|
_role_id: uuid::Uuid,
|
||||||
) -> Result<uuid::Uuid, sqlx::Error> {
|
) -> Result<uuid::Uuid, sqlx::Error> {
|
||||||
if let Some(id) = sqlx::query_scalar::<_, uuid::Uuid>(
|
if let Some(id) = sqlx::query_scalar::<_, uuid::Uuid>(
|
||||||
r#"SELECT id FROM user_role_profiles WHERE user_id = $1 AND role_key = $2"#,
|
r#"SELECT id FROM user_role_profiles WHERE user_id = $1 AND role_key = $2"#,
|
||||||
|
|
|
||||||
|
|
@ -521,7 +521,7 @@ async fn get_or_create_user_role_profile_id(
|
||||||
return Ok(id);
|
return Ok(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
let role = RoleRepository::get_by_key(pool, role_key).await?;
|
let _role = RoleRepository::get_by_key(pool, role_key).await?;
|
||||||
|
|
||||||
sqlx::query_scalar::<_, Uuid>(
|
sqlx::query_scalar::<_, Uuid>(
|
||||||
r#"
|
r#"
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ use axum::{
|
||||||
use contracts::auth_middleware::AuthUser;
|
use contracts::auth_middleware::AuthUser;
|
||||||
use db::models::role::RoleRepository;
|
use db::models::role::RoleRepository;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use uuid::Uuid;
|
|
||||||
|
|
||||||
pub fn router() -> Router<AppState> {
|
pub fn router() -> Router<AppState> {
|
||||||
Router::new()
|
Router::new()
|
||||||
|
|
|
||||||
|
|
@ -193,7 +193,7 @@ impl UserRoleProfileRepository {
|
||||||
pub async fn approve(
|
pub async fn approve(
|
||||||
pool: &PgPool,
|
pool: &PgPool,
|
||||||
id: Uuid,
|
id: Uuid,
|
||||||
approved_by: Uuid,
|
_approved_by: Uuid,
|
||||||
) -> Result<UserRoleProfile, sqlx::Error> {
|
) -> Result<UserRoleProfile, sqlx::Error> {
|
||||||
sqlx::query_as::<_, UserRoleProfile>(
|
sqlx::query_as::<_, UserRoleProfile>(
|
||||||
r#"UPDATE user_role_profiles SET
|
r#"UPDATE user_role_profiles SET
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use lettre::{
|
use lettre::{
|
||||||
message::{header::ContentType, Mailbox, MultiPart, SinglePart},
|
message::{header::ContentType, Mailbox},
|
||||||
transport::smtp::authentication::Credentials,
|
transport::smtp::authentication::Credentials,
|
||||||
AsyncSmtpTransport, AsyncTransport, Message, Tokio1Executor,
|
AsyncSmtpTransport, AsyncTransport, Message, Tokio1Executor,
|
||||||
};
|
};
|
||||||
|
|
@ -453,7 +453,7 @@ impl Mailer {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn send_account_deleted_email(&self, to: &str, name: &str) -> Result<()> {
|
pub async fn send_account_deleted_email(&self, to: &str, name: &str) -> Result<()> {
|
||||||
let vars = HashMap::from([
|
let _vars = HashMap::from([
|
||||||
("first_name", name),
|
("first_name", name),
|
||||||
]);
|
]);
|
||||||
// Use account-suspended template as base or create a simple message
|
// Use account-suspended template as base or create a simple message
|
||||||
|
|
@ -505,7 +505,7 @@ impl Mailer {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn send_lead_accepted_customer_email(&self, to: &str, customer_name: &str, professional_name: &str, professional_email: &str, professional_phone: &str) -> Result<()> {
|
pub async fn send_lead_accepted_customer_email(&self, to: &str, customer_name: &str, professional_name: &str, professional_email: &str, professional_phone: &str) -> Result<()> {
|
||||||
let vars = HashMap::from([
|
let _vars = HashMap::from([
|
||||||
("first_name", customer_name),
|
("first_name", customer_name),
|
||||||
("professional_name", professional_name),
|
("professional_name", professional_name),
|
||||||
("professional_email", professional_email),
|
("professional_email", professional_email),
|
||||||
|
|
@ -591,7 +591,7 @@ impl Mailer {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn send_support_ticket_resolved_email(&self, to: &str, name: &str, subject: &str) -> Result<()> {
|
pub async fn send_support_ticket_resolved_email(&self, to: &str, name: &str, subject: &str) -> Result<()> {
|
||||||
let frontend_url = env::var("FRONTEND_URL").unwrap_or_else(|_| "https://nxtgauge.com".to_string());
|
let _frontend_url = env::var("FRONTEND_URL").unwrap_or_else(|_| "https://nxtgauge.com".to_string());
|
||||||
let now = chrono::Local::now().format("%B %d, %Y").to_string();
|
let now = chrono::Local::now().format("%B %d, %Y").to_string();
|
||||||
|
|
||||||
let vars = HashMap::from([
|
let vars = HashMap::from([
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue