This commit is contained in:
CHIEFSOFT\ameye
2023-12-07 17:57:38 -05:00
parent 1dfabbd3b6
commit efb92948d8
+2 -2
View File
@@ -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++) {
map<const char*, const char*>f = pgsql_fetch_assoc(res, i);
@@ -140,6 +139,7 @@ long NotificationSystem(CVars in, CVars &out){
}
} // for loopp
} // main nserach
*/
return ret;
}