- passato mongoose da versione 6 a versione 7

This commit is contained in:
Surya Paolo
2025-03-03 00:59:13 +01:00
parent 53a70a1c96
commit 0a4cea94ae
5 changed files with 70 additions and 916 deletions

View File

@@ -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 {