diff --git a/api/routes.js b/api/routes.js index 2bec5b0..6023ad3 100644 --- a/api/routes.js +++ b/api/routes.js @@ -11,6 +11,6 @@ module.exports = function(app) { .get(controller.getStatus); app.route('/jobAdded') .post(controller.newJobPublish); - app.route('contractHx') + app.route('/contractHx') .get(controller.contractHx); }; \ No newline at end of file diff --git a/service/jobs.js b/service/jobs.js index 6510c89..fbab8de 100644 --- a/service/jobs.js +++ b/service/jobs.js @@ -94,7 +94,8 @@ var jobs = { }; logger.info(data); let Qstring =""; - Qstring = "SELECT * FROM members_jobs_contract WHERE client_id ="+ data.member_id+" ORDER BY id desc LIMIT 40"; + //Qstring = "SELECT * FROM members_jobs_contract WHERE client_id ="+ data.member_id+" ORDER BY id desc LIMIT 40"; + Qstring = "SELECT * FROM members_jobs_contract WHERE client_id::text = 2::text ORDER BY id desc LIMIT 20"; //" SELECT id,uid,job_uid,originalname FROM from members_jobs_files WHERE job_uid= '"+ data.job_uid +"'"; logger.info(Qstring); db.query(Qstring, function (err, result) {