- Gruppi si chiamano ora "Organizzazioni".

- Categorie dei Gruppi aggiornate.
- Email ora compare sul profilo se non hai telegram e anche sugli annunci.
This commit is contained in:
Surya Paolo
2025-01-28 23:32:32 +01:00
parent b56e25d1fa
commit 341b4b8ec7
11 changed files with 195 additions and 114 deletions

View File

@@ -44,7 +44,8 @@ router.post('/load', authenticate, async (req, res) => {
SendNotif.setNotifAsRead(idapp, usernameOrig, idnotif);
const whatshow = MyGroup.getWhatToShow(idapp, req.user.username);
let data = await MyGroup.findOne({ idapp, groupname }, whatshow).lean();
// let data = await MyGroup.findOne({ idapp, groupname }, whatshow).lean();
let data = await MyGroup.getInfoGroupByGroupname(idapp, groupname);
/*
if (data.mycircuits) {
@@ -54,7 +55,8 @@ router.post('/load', authenticate, async (req, res) => {
}
}
*/
if (data.mycircuits) {
for (let i = 0; i < data.mycircuits.length; i++) {
const mycirc = await Circuit.findOne({ idapp, name: data.mycircuits[i].circuitname }).lean();