This commit is contained in:
CHIEFSOFT\ameye
2024-11-23 11:30:27 -05:00
parent caad097517
commit 7bf57b7324
+2 -2
View File
@@ -212,7 +212,7 @@ long RefreshPromoActivities(CVars in, CVars &out){
map_to_cvars(f, rec);
// check if on pending table
resF = pgsql_query("SELECT status FROM members_pending where LOWER(username)= LOWER('%s')", rec["email"].c_star());
resF = pgsql_query("SELECT status FROM members_pending where LOWER(username)= LOWER('%s')", rec["email"].c_str());
if (resF != NULL && pgsql_num_rows(resF) > 0) {
pgsql_query("UPDATE promo_member SET updated = now(), status=2 WHERE id = %lu ", rec["id"].Long()); // mo
}
@@ -231,7 +231,7 @@ long RefreshPromoActivities(CVars in, CVars &out){
map_to_cvars(f, rec);
// check if on pending table
resF = pgsql_query("SELECT status FROM members where LOWER(username)= LOWER('%s')", rec["email"].c_star());
resF = pgsql_query("SELECT status FROM members where LOWER(username)= LOWER('%s')", rec["email"].c_str());
if (resF != NULL && pgsql_num_rows(resF) > 0) {
pgsql_query("UPDATE promo_member SET updated = now(), status=3 WHERE id = %lu ", rec["id"].Long()); // mo
}