Popupmenu Todo:
- Show Task Completed
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user