This commit is contained in:
CHIEFSOFT\ameye
2024-07-18 16:14:09 -04:00
parent 2f3767dab5
commit 0d74197ba2
+15 -11
View File
@@ -508,21 +508,25 @@ long WrenchJobsInterestStats(CVars in, CVars &out) {
long ret = PHP_API_BAD_PARAM;
char vname[30];
//out = in;
try {
// REQ_STRING(in, "uid", 1, 95, "(.*)"); //uid
// REQ_STRING(in, "interest_uid", 1, 95, "(.*)"); //interest_uid
// REQ_STRING(in, "client_uid", 1, 95, "(.*)"); //client_uid
try {
out["job_completed"] = "0";
out["job_active"] = "0";
out["job_percent_complete"] = "0";
out["job_uncompleted"] = "0";
out["job_rejected"] = "0";
out["job_pending"] = "0";
out["job_last_date"] = "0000-00-00";
REQ_STRING(in, "uid", 1, 95, "(.*)"); //uid
REQ_STRING(in, "interest_uid", 1, 95, "(.*)"); //interest_uid
REQ_STRING(in, "client_uid", 1, 95, "(.*)"); //client_uid
out["job_completed"] = "0";
out["job_active"] = "0";
out["job_percent_complete"] = "0";
out["job_uncompleted"] = "0";
out["job_rejected"] = "0";
out["job_pending"] = "0";
out["job_last_date"] = "0000-00-00";
//SELECT id as client_id FROM members WHERE uid::text = 'dfc9d601-780f-4d78-839f-422f0928f911';
ret = PHP_CREATED_OK;
} catch (bad_parameter) {
out["log_status"] = "Error WrenchJobsInterestStats";