Aggiunto il filtro per Provincia

This commit is contained in:
paoloar77
2022-01-23 23:25:34 +01:00
parent 66eaca6d41
commit 632534eed1
15 changed files with 89399 additions and 24 deletions

View File

@@ -47,6 +47,9 @@ const UserSchema = new mongoose.Schema({
type: String,
required: true,
},
group: {
type: Number,
},
index: {
type: Number,
},
@@ -222,6 +225,9 @@ const UserSchema = new mongoose.Schema({
username_telegram: {
type: String,
},
website: {
type: String,
},
teleg_id: {
type: Number,
},
@@ -1196,6 +1202,7 @@ UserSchema.statics.getUserProfileByUsername = async function(idapp, username) {
'profile.biografia': 1,
'profile.teleg_id': 1,
'profile.username_telegram': 1,
'profile.website': 1,
'profile.img': 1,
'profile.sex': 1,
'profile.dateofbirth': 1,
@@ -1414,6 +1421,7 @@ function getWhatToShow(idapp, username) {
'profile.qualifica': 1,
'profile.biografia': 1,
'profile.username_telegram': 1,
'profile.website': 1,
'profile.img': 1,
'profile.sex': 1,
'profile.dateofbirth': 1,