missed mail type

This commit is contained in:
CHIEFSOFT\ameye
2024-11-28 03:48:29 -05:00
parent f4ce63f219
commit ceac9d3f49
+3 -3
View File
@@ -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("", "");