jobs micro

This commit is contained in:
CHIEFSOFT\ameye
2024-04-13 21:34:35 -04:00
parent 7d57064ffb
commit e3e7d6d657
3 changed files with 30 additions and 9 deletions
+23
View File
@@ -60,6 +60,29 @@ var jobs = {
next(e.message, null); // pass control to the next handler
}
});
},
getmarketjobsFiles: function (req, res, next) {
var data = {
"uid": req.query.uid,
"member_uid": req.query.member_uid,
"job_uid": req.query.job_uid,
"sessionid": req.query.sessionid,
"page": req.query.page
};
let Qstring ="";
Qstring = "SELECT id,uid,job_uid,originalname,FROM from members_jobs_files WHERE job_uid= '"+ data.job_uid +"'";
db.query(Qstring, function (err, result) {
try {
if (err) throw err;
let resultItem ={
"result": result.rows,
"total_record": result.rowCount
}
next(null, resultItem); // pass control to the next handler
} catch (e) {
next(e.message, null); // pass control to the next handler
}
});
}
};
module.exports = jobs;