la creazione dell'annuncio impiega troppo tempo (e le persone cliccavano su "Salva" più volte)...

This commit is contained in:
Surya Paolo
2023-06-18 22:29:06 +02:00
parent 95a812f002
commit 3393af36aa
7 changed files with 277 additions and 246 deletions

View File

@@ -478,7 +478,9 @@ router.post('/settable', authenticate, async (req, res) => {
}
if (setnotif) {
await SendNotif.createNewNotification(req, res, { groupnameDest, circuitnameDest }, params.table, myrec, typedir, typeid);
const myreq = {...req};
const myres = {...res};
SendNotif.createNewNotification(myreq, myres, { groupnameDest, circuitnameDest }, params.table, myrec, typedir, typeid);
}
if (params.table === 'circuits') {