From ceac9d3f491870ac2dbfb6d2c8b5c4147529035c Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 28 Nov 2024 03:48:29 -0500 Subject: [PATCH] missed mail type --- wrenchboard/src/shared_tool/cron_email.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wrenchboard/src/shared_tool/cron_email.cc b/wrenchboard/src/shared_tool/cron_email.cc index 5f53eb58..4b8a7c33 100644 --- a/wrenchboard/src/shared_tool/cron_email.cc +++ b/wrenchboard/src/shared_tool/cron_email.cc @@ -15,7 +15,7 @@ extern int mailsend(CVars in, CVars &out); long CronWelcomeAccountMail(CVars in); long CronAccountPendingMail(CVars in) ; long CronJobEmail(long mailtype, CVars in, CVars &out); -long CronAccountMail(CVars in); +long CronAccountMail((long mailtype, CVars in); /* CREATE TABLE email_message( @@ -137,7 +137,7 @@ try { CVars rec; map_to_cvars(f, rec); pgsql_query("UPDATE email_message SET status = 2 WHERE id = %lu ", rec["id"].Long()); // move the status so no retry - CronAccountMail(rec); // send the cron email + CronAccountMail(rec["action"].Long(), rec); // send the cron email pgsql_query("UPDATE email_message SET status = 5, completed = now() WHERE id = %lu ", rec["id"].Long()); // move the status so no retry } } @@ -541,7 +541,7 @@ long CronJobEmail(long mailtype, CVars in, CVars &out) { return 0; } -long CronAccountMail(CVars in){ +long CronAccountMail((long mailtype, CVars in){ logfmt(logINFO, "CronAccountMail()"); CVars x, y, z, ml; C_CGI_Form form("", "");