From d62b9d7899eb3dc311d1932da4c5363ba8e22f7b Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 23 Nov 2024 12:20:28 -0500 Subject: [PATCH] added admin uid --- wrenchboard/src/shared_tool/site_crons.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wrenchboard/src/shared_tool/site_crons.cc b/wrenchboard/src/shared_tool/site_crons.cc index f5189ae3..c1c6c51e 100644 --- a/wrenchboard/src/shared_tool/site_crons.cc +++ b/wrenchboard/src/shared_tool/site_crons.cc @@ -219,8 +219,9 @@ long RefreshPromoActivities(CVars in, CVars &out){ 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 CVars yp; - yp["category"] ="SIGNUP"; - yp["description"] = "Sign up was started"; + yp["category"] ="SIGNUP"; yp["category"].set_valid( true ); + yp["admin_id"] = rec["admin_id"]; yp["admin_id"].set_valid( true ); + yp["description"] = "Sign up was started"; yp["description"].set_valid( true ); RegisterPromoAction(yp); } } @@ -285,6 +286,7 @@ long RegisterPromoPoint(CVars in){ CVars yp; yp["category"] ="SIGNUP_POINT"; + yp["admin_id"] = in["admin_id"]; yp["admin_id"].set_valid( true ); yp["description"] = "Sign up was completed"; RegisterPromoAction(yp); return 0;