From 492f599cd90e1a2fcef73296ce09fdc0b53851b0 Mon Sep 17 00:00:00 2001 From: Surya Paolo Date: Mon, 30 Sep 2024 22:08:33 +0200 Subject: [PATCH] - Invio RIS migliorata grafica e aggiunto tastierino numerico. --- src/server/router/circuits_router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/router/circuits_router.js b/src/server/router/circuits_router.js index 4930373..dc5f3ac 100755 --- a/src/server/router/circuits_router.js +++ b/src/server/router/circuits_router.js @@ -86,7 +86,7 @@ router.post('/load', authenticate, async (req, res) => { let arrrecnotifcoins = null; const arrrecnotif = await SendNotif.findAllNotifByUsernameIdAndIdApp(req.user.username, lastdr, idapp, shared_consts.LIMIT_NOTIF_FOR_USER, shared_consts.QualiNotifs.OTHERS); - if (isAdminById(req.user.id)) { + if (User.isAdminById(req.user.id)) { arrrecnotifcoins = await SendNotif.findAllNotifCoinsAllIdAndIdApp(idapp); } else { arrrecnotifcoins = await SendNotif.findAllNotifByUsernameIdAndIdApp(req.user.username, lastdr, idapp, shared_consts.LIMIT_NOTIFCOINS_FOR_USER, shared_consts.QualiNotifs.CIRCUITS);