- 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

@@ -34,9 +34,9 @@ const MyGroupSchema = new Schema({
descr: {
type: String,
},
idCatGrp: {
idCatGrp: [{
type: Number,
},
}],
userId: {
type: String,
},
@@ -348,6 +348,17 @@ MyGroupSchema.statics.getInfoGroupByGroupname = async function (idapp, groupname
},
},
{ $project: whatToShow },
{
$lookup: {
from: 'catgrps',
localField: 'idCatGrp',
foreignField: '_id',
as: 'recCatGrp',
},
},
{
$project: shared_consts.getProjectByTable(shared_consts.TABLES_MYGROUPS, {}),
},
];