missed mail type
This commit is contained in:
@@ -15,7 +15,7 @@ extern int mailsend(CVars in, CVars &out);
|
|||||||
long CronWelcomeAccountMail(CVars in);
|
long CronWelcomeAccountMail(CVars in);
|
||||||
long CronAccountPendingMail(CVars in) ;
|
long CronAccountPendingMail(CVars in) ;
|
||||||
long CronJobEmail(long mailtype, CVars in, CVars &out);
|
long CronJobEmail(long mailtype, CVars in, CVars &out);
|
||||||
long CronAccountMail(CVars in);
|
long CronAccountMail((long mailtype, CVars in);
|
||||||
/*
|
/*
|
||||||
|
|
||||||
CREATE TABLE email_message(
|
CREATE TABLE email_message(
|
||||||
@@ -137,7 +137,7 @@ try {
|
|||||||
CVars rec;
|
CVars rec;
|
||||||
map_to_cvars(f, 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
|
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
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
long CronAccountMail(CVars in){
|
long CronAccountMail((long mailtype, CVars in){
|
||||||
logfmt(logINFO, "CronAccountMail()");
|
logfmt(logINFO, "CronAccountMail()");
|
||||||
CVars x, y, z, ml;
|
CVars x, y, z, ml;
|
||||||
C_CGI_Form form("", "");
|
C_CGI_Form form("", "");
|
||||||
|
|||||||
Reference in New Issue
Block a user