Interest count

This commit is contained in:
CHIEFSOFT\ameye
2023-06-11 20:22:18 -04:00
parent 55546ada6b
commit e4a0d5f7f9
2 changed files with 36 additions and 3 deletions
+2 -2
View File
@@ -164,7 +164,7 @@ long RecoOffersInterest(int itm_count, CVars in, CVars &out ){
out[vname] = "Continue";
snprintf(vname, sizeof (vname), "short_button_text_%05d", ic);
out[vname] = "short_button_text";
out[vname] = "View now";
snprintf(vname, sizeof (vname), "short_title_%05d", ic);
out[vname] = "Interest Pending";
@@ -259,7 +259,7 @@ long RecoCheckFamilyLogin(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 count(id) AS family_count FROM members_family WHERE member_id = %lu AND status = 1 AND last_login IS NULL ",member_id);
res = pgsql_query("SELECT id FROM members_family WHERE member_id = %lu AND status = 1 AND last_login IS NULL ",member_id);
if (res != NULL && pgsql_num_rows(res) > 0) {
snprintf(vname, sizeof (vname), "title_%05d", ic);