From efb92948d815f7e5c6e44e69fea0c37ca9045e86 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 7 Dec 2023 17:57:38 -0500 Subject: [PATCH] fb --- wrenchboard/src/shared_tool/site_crons.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrenchboard/src/shared_tool/site_crons.cc b/wrenchboard/src/shared_tool/site_crons.cc index f240fed5..10476be5 100644 --- a/wrenchboard/src/shared_tool/site_crons.cc +++ b/wrenchboard/src/shared_tool/site_crons.cc @@ -109,10 +109,9 @@ long NotificationSystem(CVars in, CVars &out){ const PGresult *res; long limit = in["limit"].Long(); logfmt(logINFO, "ENTER NotificationSystem()"); - long contract_id = 0; long push_ret = -1; const PGresult *res = pgsql_query("SELECT count(member_uid) AS mcount,member_uid " - " FROM members_notification WHERE status=1 GROUP BY member_uid LIMIT %lu",limit); + /* " FROM members_notification WHERE status=1 GROUP BY member_uid LIMIT %lu",limit); if (res != NULL && pgsql_num_rows(res) > 0) { for (int i = 0, n = pgsql_num_rows(res); i < n; i++) { mapf = pgsql_fetch_assoc(res, i); @@ -140,6 +139,7 @@ long NotificationSystem(CVars in, CVars &out){ } } // for loopp } // main nserach + */ return ret; }