- Tolto Zoom e Sogni come requisiti
- Corretto Email con HTML che si visualizzavano tutti i caratteri HTML...
This commit is contained in:
@@ -186,7 +186,7 @@ function getTableByTableName(tablename) {
|
||||
mytable = User;
|
||||
else if (tablename === 'tessitura')
|
||||
mytable = Tessitura;
|
||||
// else if (tablename === 'extralist')
|
||||
// else if (tablename === 'extralist')
|
||||
// mytable = ExtraList;
|
||||
else if (tablename === 'bookings')
|
||||
mytable = Booking;
|
||||
@@ -987,6 +987,8 @@ router.delete('/delrec/:table/:id', authenticate, async (req, res) => {
|
||||
|
||||
tools.mylog('DELETED ', rec._id);
|
||||
|
||||
return true;
|
||||
|
||||
}).catch((e) => {
|
||||
console.log(e.message);
|
||||
res.status(400).send();
|
||||
@@ -996,7 +998,7 @@ router.delete('/delrec/:table/:id', authenticate, async (req, res) => {
|
||||
|
||||
if (cancellato) {
|
||||
// Do extra things after deleted
|
||||
ris = await actions.doOtherThingsAfterDeleted(tablename, myrec, notifBot, req);
|
||||
let ris2 = await actions.doOtherlasThingsAfterDeleted(tablename, myrec, notifBot, req);
|
||||
if (!!ris) {
|
||||
return res.send({ code: server_constants.RIS_CODE_OK, msg: '' });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user