job alert

This commit is contained in:
CHIEFSOFT\ameye
2023-12-07 23:35:14 -05:00
parent fc1055add8
commit 0b4491d9b3
+9
View File
@@ -1454,6 +1454,15 @@ long WrenchSendJobsOfferIndividual(CVars in, CVars &out) {
out["status"] = "Offer sent to recipient";
recommendation_engine(RECOMMEND_OFFERS , y, out); // trigger the card interaction in apps
CVars xy;
if ( load_db_record(xy, "SELECT id AS member_id, uid AS member_uid, 'alert.svg' AS icon "
" FROM members WHERE LOWER(username) = LOWER('%s') ",in["email"].c_str()) > 0 ){
xy["msg"] = "You have received a new offer !!!";
xy["msg"].set_valid(true);
plan_notification(xy, out);
}
} else {
out["error_msg"] = "error_unable_to_create_fund_for_task";
out["status"] = "Unable to create this offer";