fixed call parameters

This commit is contained in:
CHIEFSOFT\ameye
2024-04-14 11:21:17 -04:00
parent 4251fbe9a4
commit 201021ca9f
+5 -6
View File
@@ -206,14 +206,13 @@ long WrenchJobListFiles(CVars in, CVars &out){
const PGresult *res;
try{
long member_id = REQ_LONG(in, "member_id", 1, -1);
long offset = REQ_LONG(in, "offset", 1, -1);
long limit = REQ_LONG(in, "limit", 1, -1);
REQ_STRING(in, "member_uid", 15, 155, "(.*)");
REQ_STRING(in, "job_uid", 15, 155, "(.*)");
REQ_STRING(in, "sessionid", 15, 155, "(.*)");
out["total_record"] = "0";
res = pgsql_query("SELECT id,uid,job_uid,originalname,size FROM members_jobs_files WHERE job_uid='%s'", in["job_uid"].c_str());
res = pgsql_query("SELECT id,uid,job_uid,originalname,size FROM members_jobs_files WHERE job_uid='%s'", in["job_uid"].c_str());
if (res != NULL && pgsql_num_rows(res) > 0) {
out["total_record"] = pgsql_num_rows(res);