From 0b4491d9b3b49bf6e62113d4463a2b3b106c163f Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 7 Dec 2023 23:35:14 -0500 Subject: [PATCH] job alert --- wrenchboard/src/shared_tool/jobs.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wrenchboard/src/shared_tool/jobs.cc b/wrenchboard/src/shared_tool/jobs.cc index 3e44998c..964bdf9e 100644 --- a/wrenchboard/src/shared_tool/jobs.cc +++ b/wrenchboard/src/shared_tool/jobs.cc @@ -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";