Fix data , upload routes

This commit is contained in:
CHIEFSOFT\ameye
2023-06-01 10:08:11 -04:00
parent f60f4cf9fd
commit 66af574c17
4 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ long WrenchJobPostExtendTime(CVars in, CVars &out){
if (!f.empty()) {
CVars rec;
map_to_cvars(f, rec);
pgsql_query("UPDATE members_jobs_offer SET expire = now() + '%lu days()' WHERE offer_code = '%s' AND member_id=%lu AND status =1",rec["offer_id"].Long(), in["offer_code"].c_str(),member_id);
pgsql_query("UPDATE members_jobs_offer SET expire = now() + '%lu days()' WHERE offer_code = '%s' AND member_id=%lu AND status =1",extend_days, in["offer_code"].c_str(),member_id);
ret = PHP_UPDATED_OK;
}
}
+2
View File
@@ -133,6 +133,8 @@ $routes->post('/en/wrench/api/v1/pendingjobcancel', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/assigntask', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/uploads', 'WrenchApi::apigate');
//$routes->post('/en/wrench/api/v1/blogdata', 'WrenchBlog::apigate');
//$routes->post('/en/wrench/api/v1/blogitem', 'WrenchBlog::apigate');
+2
View File
@@ -101,6 +101,8 @@ class WrenchApi extends BaseController
'pendingjobcancel' => ['POST'],
'assigntask' => ['POST'],
'resources'=> ['POST'],
'uploads'=> ['POST'],
];
return $endpoints;
}
+1
View File
@@ -80,6 +80,7 @@ $endpoints = array(
'pendingjobcancel' => array('POST'),
'assigntask' => array('POST'),
'resources'=> array('POST'),
'uploads'=> array('POST'),
);
$call_backend = true; // sometimes we need to overwite the call to the extenstion API