show late jobs to a day

This commit is contained in:
CHIEFSOFT\ameye
2024-09-30 09:22:55 -04:00
parent f021a9e758
commit e80b1c686d
+1 -1
View File
@@ -899,7 +899,7 @@ long RecoCheckActiveTask( int itm_count, CVars in, CVars &out ){
try {
int ic = itm_count;
long member_id = REQ_LONG(in, "member_id", 1, -1);
res = pgsql_query("SELECT * FROM members_jobs_contract WHERE client_id = %lu AND status =1 AND delivery_date < now() ",member_id);
res = pgsql_query("SELECT * FROM members_jobs_contract WHERE client_id = %lu AND status =1 AND delivery_dateAND delivery_date > ( now() - interval '1440 minutes' ) ",member_id);
if (res != NULL && pgsql_num_rows(res) > 0) {
snprintf(vname, sizeof (vname), "title_%05d", ic);