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