bobs sample data

This commit is contained in:
CHIEFSOFT\ameye
2024-07-12 13:44:01 -04:00
parent 43ae5f7aa5
commit c27b3255e7
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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);
};
+2 -1
View File
@@ -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) {