Pagina con i link dei Canali territoriali di RISO
Lista Tabelle "Aggiungi" da errore userId... Aggiunto "Servizi" e alcune sue sottocategorie Aggiunto anche la conversione della foto piccola alla Foto Profilo
This commit is contained in:
@@ -125,20 +125,30 @@ router.post('/send', authenticate, async (req, res) => {
|
||||
send({code: server_constants.RIS_CODE_ERR_UNAUTHORIZED, msg: ''});
|
||||
}
|
||||
|
||||
let msgcosa = 'da Inviare';
|
||||
if (params.sendreally) {
|
||||
msgcosa = 'Inviati';
|
||||
}
|
||||
|
||||
try {
|
||||
if (params.typesend === 0)
|
||||
params.typesend = shared_consts.TypeSend.PUSH_NOTIFICATION;
|
||||
params.sendreally = true;
|
||||
|
||||
if (params.typemsg === shared_consts.TypeMsg.SEND_TO_MYSELF) {
|
||||
params.usernameDest = req.user.username;
|
||||
}
|
||||
|
||||
const ris = await globalTables.SendMsgToParam(idapp, params);
|
||||
|
||||
|
||||
return res.send({
|
||||
code: server_constants.RIS_CODE_OK,
|
||||
msg: ris.nummsgsent + ' Msg Inviati su ' + ris.numrec + ' !',
|
||||
msg: ris.nummsgsent + ` Msg ${msgcosa} su ` + ris.numrec + ' !',
|
||||
nummsg: ris.nummsgsent,
|
||||
});
|
||||
} catch (e) {
|
||||
return res.send(
|
||||
{code: server_constants.RIS_CODE_ERR, msg: nummsg + ' Msg Inviati !'});
|
||||
{code: server_constants.RIS_CODE_ERR, msg: nummsg + ` Msg ${msgcosa} !`});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user