Use dot notation to access object val

This commit is contained in:
Mikołaj Pich 2019-02-14 20:03:31 +01:00
parent e7822b9e9a
commit dafdaa7b94
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA

View file

@ -130,7 +130,7 @@ router.all("/NowaWiadomosc.mvc/InsertWiadomosc", (req, res) => {
"success": true,
"data": {
"Adresaci": data.Adresaci.map(item => {
item["PushWiadomosc"] = false;
item.PushWiadomosc = false;
return item;
}),
"Temat": data.Temat,