Popupmenu Todo:

- Show Task Completed
This commit is contained in:
Paolo Arena
2019-03-04 17:28:41 +01:00
parent 8f1ee2a7da
commit 8fe9199162
4 changed files with 6 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ router.post('/updateval', authenticate, (req, res) => {
console.log('/updateval', req.body.pairval);
pair = req.body.pairval;
cfgserver.findOneAndUpdate({chiave: pair.chiave}, { $set: pair }, { new: false }).then((item) => {
cfgserver.findOneAndUpdate({chiave: pair.chiave, userID: pair.userId}, { $set: pair }, { new: false }).then((item) => {
// cfgserver.find({ chiave: pair.chiave }, (err, item) => {
res.status(200).send();
}).catch(err => {