Job message

This commit is contained in:
CHIEFSOFT\ameye
2024-10-09 10:53:21 -04:00
parent 45a132c601
commit 14803caaf8
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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";
}
+1 -1
View File
@@ -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) {