notifificatoon
This commit is contained in:
@@ -235,6 +235,8 @@ long WrenchSuggestList(CVars in, CVars &out){
|
||||
|
||||
long WrenchSuggestTaskStatus(CVars in, CVars &out){
|
||||
long ret = PHP_API_BAD_PARAM;
|
||||
CVars xy;
|
||||
CVars xout;
|
||||
// const PGresult *res;
|
||||
try{
|
||||
long member_id = REQ_LONG(in, "member_id", 1, -1);
|
||||
@@ -279,6 +281,14 @@ long WrenchSuggestTaskStatus(CVars in, CVars &out){
|
||||
out["status"] = "OK";
|
||||
out["status_msg"] = "family_suggest_reminder_sent";
|
||||
ret = PHP_API_OK;
|
||||
|
||||
if ( load_db_record(xy, "SELECT id AS member_id, uid AS member_uid, 'message.svg' AS icon "
|
||||
" FROM members WHERE id = %lu ",rec2["member_id"].Long()) > 0 ){
|
||||
xy["msg"] = "You have received a suggested task reminder";
|
||||
xy["msg"].set_valid(true);
|
||||
plan_notification(xy, xout);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user