notifificatoon

This commit is contained in:
CHIEFSOFT\ameye
2023-12-18 13:02:39 -05:00
parent 0b5837d12d
commit 378599d17c
+10
View File
@@ -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);
}
}
}
}