This commit is contained in:
CHIEFSOFT\ameye
2024-08-28 08:41:38 -04:00
parent f3b2bcb396
commit f517beac4a
+24 -8
View File
@@ -76,8 +76,6 @@ WRENCHJOB_EMAIL_PASS='may12002!'
},
});
//
const tempVal = this.getTemplateValues(data);
console.log("MATCHED VALUES =>", tempVal);
console.log("HERE -- 00003***********************************************");
@@ -102,12 +100,30 @@ WRENCHJOB_EMAIL_PASS='may12002!'
console.log(" processLinedJobs ************************ : ", value);
if (value.depend_uid !== undefined && value.depend_uid.length > 10){
console.log("We need contact people that did this job: ", value.depend_uid);
}
else{
console.log("Thism is not a referenced job ***** : ");
}
if (value.depend_uid !== undefined && value.depend_uid.length > 10){
console.log("We need contact people that did this job: ", value.depend_uid);
}
else{
console.log("This is not a referenced job ***** : ");
const QString = " SELECT j.title,j.description,m.id AS job_id,m.expire,m.job_description,j.price, " +
" m.offer_code,j.timeline_days, to_char(m.expire, 'Dy Mon dd, yyyy HH:MI AM') AS expire2," +
" m.uid AS offer_uid,j.uid AS job_uid,m.added::date AS offer_added,j.country AS job_country, " +
" c.code AS currency_code, c.description AS currency_description,j.country, j.category " +
" FROM members_jobs_offer m " +
" LEFT JOIN members_jobs j ON j.id=m.job_id " +
" LEFT JOIN currency c ON c.country=j.country " +
" WHERE j.uid::TEXT = '" + value.depend_uid + "' ";
logger.info(QString);
db.query(QString, function (err, result) {
try {
if (err) throw err;
logger.info(result);
} catch (e) {
console.log(e.error);
}
});
}
},
async parseEmailFile(emailFile){
const file_name =`EMAIL//${emailFile}.html`;