- passato mongoose da versione 6 a versione 7
This commit is contained in:
@@ -385,7 +385,6 @@ router.post('/updateval', authenticate, async (req, res) => {
|
||||
return await CfgServer.findOneAndUpdate(
|
||||
{ chiave: pair.chiave, idapp, userId: pair.userId }, { $set: pair },
|
||||
{ new: false }).then((item) => {
|
||||
// CfgServer.find({ chiave: pair.chiave }, (err, item) => {
|
||||
if (!!item) {
|
||||
res.status(200).send();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user