This commit is contained in:
2022-07-04 13:07:40 -04:00
parent d1a443ff42
commit fb6644d719
2 changed files with 4 additions and 5 deletions
+3 -5
View File
@@ -989,6 +989,7 @@ long WrenchUpdateAccountDescription(CVars in, CVars &out) {
long WrenchUpdateAccountTerms(CVars in, CVars &out) {
logfmt(logINFO, "long WrenchUpdateAccountTerms(CVars in, CVars out)");
long ret = PHP_API_BAD_PARAM;
out["terms_update"] = "";
try {
long action_item = REQ_LONG(in, "action_item", 1, -1);
long member_id = REQ_LONG(in, "member_id", 1, -1);
@@ -997,18 +998,15 @@ long WrenchUpdateAccountTerms(CVars in, CVars &out) {
case ACCOUNT_AGREE_JOBS:
pgsql_exec("UPDATE members SET post_jobs=NOW() WHERE id=%lu ", member_id);
ret = PHP_API_OK;
out["terms_update"] = "completed";
break;
case ACCOUNT_AGREE_REFER:
pgsql_exec("UPDATE members SET refer=NOW() WHERE id=%lu ", member_id);
ret = PHP_API_OK;
out["terms_update"] = "completed";
break;
}
} catch (bad_parameter) {
out["status"] = "Invalid Parameters";
}
@@ -73,6 +73,7 @@ long sendCouponRecommendation( CVars in, CVars &out){
CVars xx;
CVars xout;
xx["action"] = WRENCHBOARD_CARDS_CREATECARD; xx["action"].set_valid( true );
xx["member_id"] = member_id; xx["member_id"].set_valid( true );
xx["title"] = "This is your coupon"; xx["title"].set_valid( true );
xx["description"] = "Click to redeem your coupon to your account"; xx["description"].set_valid( true );
xx["card_type"] = "COUPON"; xx["card_type"].set_valid( true );