From 669716f335a7e858266526454e7e9eb529844509 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Mon, 18 Dec 2023 15:47:16 -0500 Subject: [PATCH] notification start task --- wrenchboard/src/shared_tool/jobs.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/wrenchboard/src/shared_tool/jobs.cc b/wrenchboard/src/shared_tool/jobs.cc index 964bdf9e..9957ad82 100644 --- a/wrenchboard/src/shared_tool/jobs.cc +++ b/wrenchboard/src/shared_tool/jobs.cc @@ -1226,6 +1226,10 @@ long WrenchSendJobsOfferFamily(CVars in, CVars &out) { CVars y; CVars u; CVars z; + + CVars xy; + CVars xout; + bool family_found = false; try { @@ -1316,6 +1320,16 @@ long WrenchSendJobsOfferFamily(CVars in, CVars &out) { out["status"] = "Offer sent to recipient"; recommendation_engine(RECOMMEND_OFFERS , y, out); // trigger the card interaction in apps + if ( load_db_record(xy, "SELECT mj.client_id AS member_id, m.uid AS member_uid " + " FROM members_jobs_offer mj " + " LEFT JOIN members m ON m.id = mj.client_id " + " WHERE mj.id = %lu ",offer_id ) > 0 ){ + xy["msg"] = "You have a task to start !"; + xy["msg"].set_valid(true); + plan_notification(xy, xout); + } + + } else { out["error_msg"] = "error_unable_to_create_fund_for_task"; out["status"] = "Unable to create this offer";