From 4c83bccfc2094e145212dd94ceb1e202bf423323 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 20 Sep 2024 18:47:20 -0400 Subject: [PATCH] ,cc.description AS currency --- wrenchboard/src/shared_tool/site_crons.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/wrenchboard/src/shared_tool/site_crons.cc b/wrenchboard/src/shared_tool/site_crons.cc index 03ff4865..cd81d398 100644 --- a/wrenchboard/src/shared_tool/site_crons.cc +++ b/wrenchboard/src/shared_tool/site_crons.cc @@ -359,10 +359,14 @@ if ( mode == 300 ){ snprintf(extraQ, sizeof (extraQ), " WHERE jo.expire < now() +'6 hrs' AND jo.expire > now() AND jo.status = 1 AND jo.public_view =0 AND jo.reminder_count = 2 AND jo.reminder_date IS NOT NULL"); } -const PGresult *res = pgsql_query("SELECT jo.id AS offer_id,jo.added,j.title,jo.expire,to_char(jo.expire, 'Dy Mon dd, yyyy HH:MI AM') AS expire_formated, jo.email, jo.client_id, " - "jo.job_id,jo.reminder_count,jo.reminder_date,jo.email AS firstname, jo.email AS rec_username,j.description AS job_description ,j.timeline_days,j.price, jo.offer_code " - "FROM members_jobs_offer jo " - "LEFT JOIN members_jobs j ON j.id = jo.job_id " +const PGresult *res = pgsql_query("SELECT jo.id AS offer_id,jo.added,j.title,jo.expire," + " to_char(jo.expire, 'Dy Mon dd, yyyy HH:MI AM') AS expire_formated, jo.email, jo.client_id, " + " jo.job_id,jo.reminder_count,jo.reminder_date,jo.email AS firstname, " + " jo.email AS rec_username,j.description AS job_description ," + " j.timeline_days,j.price, jo.offer_code,cc.description AS currency " + " FROM members_jobs_offer jo " + " LEFT JOIN members_jobs j ON j.id = jo.job_id " + " LEFT JOIN currency cc ON cc.country = j.country " " %s AND jo.reminder_count < 4 LIMIT %lu ",extraQ, limit); if (res != NULL && pgsql_num_rows(res) > 0) {