notification start task
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user