Job message
This commit is contained in:
@@ -446,7 +446,7 @@ long CronJobEmail(long mailtype, CVars in, CVars &out) {
|
||||
out["total_record"] = pgsql_num_rows(res);
|
||||
|
||||
for (int i = 0, n = pgsql_num_rows(res); i < n; i++) {
|
||||
x["color"] = "FFFFFF";
|
||||
in["color"] = "FFFFFF";
|
||||
if (c > 0) {
|
||||
in["color"] = "ebfaeb";
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ long cron_email(long mailtype, CVars in, CVars &out) {
|
||||
" LEFT JOIN currency cc ON cc.country = mj.country "
|
||||
" LEFT JOIN members m ON m.id=mc.client_id "
|
||||
"WHERE mc.member_id = %lu AND mc.status IN (1,2) "
|
||||
" AND delivery_date < now() ", in["member_id"].Long());
|
||||
" AND mc.delivery_date < now() ORDER BY mc.delivery_date DESC LIMIT 8", in["member_id"].Long());
|
||||
|
||||
|
||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user