checjson fix regex telephonefr

This commit is contained in:
2024-03-27 23:52:41 +01:00
parent a8dc3ca17b
commit 4b7cf11712
4 changed files with 25 additions and 16 deletions

View File

@@ -66,8 +66,9 @@ router.post("/registeranonymous",checkHeaders,(req,res)=>{
if (!req.body.typekey || !['email','telephone'].includes(req.body.typekey) ){
return res.status(406).json({status:406,ref:"Notifications",msg:"typekeyunknown",data:{typekey:req.body.typekey}})
}
const key= (req.body.contactpoint)?req.body.contactpoint:req.body[req.body.typekey];
result= Notifications.registertolist(
req.body[req.body.typekey],
key,
req.body.typekey,
req.body.tribe,
req.body.mlist,