- 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:
@@ -28,6 +28,11 @@ async function getCircuitRecAdminsInfo(idapp, data) {
|
||||
if (myuser && myuser.profile)
|
||||
admin.profile = { img: myuser.profile.img };
|
||||
}
|
||||
|
||||
if (data.admins.length === 0) {
|
||||
data.admins.push({username: shared_consts.USER_ADMIN_CIRCUITS})
|
||||
}
|
||||
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user