- corretto scheda prodotto, record salvato
This commit is contained in:
@@ -518,7 +518,7 @@ router.post('/settable', authenticate, async (req, res) => {
|
||||
})
|
||||
.then(async (risult) => {
|
||||
let rec = null;
|
||||
if (risult && risult.acknowledged === 1) {
|
||||
if (risult && risult.acknowledged) {
|
||||
rec = await mytable.findById(mytablerec._id).lean();
|
||||
} else {
|
||||
rec = risult;
|
||||
|
||||
@@ -99,7 +99,7 @@ router.post('/cmd', authenticate_noerror, async (req, res) => {
|
||||
}
|
||||
|
||||
|
||||
let state = (value && ris && ris.acknowledged === 1) ? 1 : ((!value && ris && ris.acknowledged === 1) ? -1 : 0);
|
||||
let state = (value && ris && ris.acknowledged) ? 1 : ((!value && ris && ris.acknowledged) ? -1 : 0);
|
||||
|
||||
const risreac = await Reaction.calcReactions(idapp, id, tab);
|
||||
if (risreac) {
|
||||
|
||||
Reference in New Issue
Block a user