- Iscrizione Conacreis

This commit is contained in:
Paolo Arena
2021-05-10 01:50:40 +02:00
parent e05bbb39ee
commit cf97870cc7
16 changed files with 336 additions and 103 deletions

View File

@@ -270,6 +270,9 @@ const UserSchema = new mongoose.Schema({
come_ci_hai_conosciuto: {
type: Boolean,
},
socio: {
type: Boolean,
},
socioresidente: {
type: Boolean,
},
@@ -1445,7 +1448,7 @@ UserSchema.statics.isAdminByIdTeleg = async function (idapp, idtelegram) {
return await User.findOne({
idapp,
username: 'paoloar77',
username: 'paoloarcnm',
'profile.manage_telegram': true,
'profile.teleg_id': idtelegram
}, { 'profile.teleg_id': 1 })