- comune residenza anche sulla email
- comune non obbligatorio... Skippa
This commit is contained in:
@@ -538,6 +538,9 @@ const UserSchema = new mongoose.Schema({
|
||||
noCircuit: {
|
||||
type: Boolean,
|
||||
},
|
||||
noComune: {
|
||||
type: Boolean,
|
||||
},
|
||||
noCircIta: {
|
||||
type: Boolean,
|
||||
},
|
||||
|
||||
@@ -1122,6 +1122,8 @@ async function eseguiDbOpUser(idapp, mydata, locale, req, res) {
|
||||
await User.ripristinaPwdPrec(mydata);
|
||||
} else if (mydata.dbop === 'noCircuit') {
|
||||
await User.findOneAndUpdate({ _id: mydata._id }, { $set: { 'profile.noCircuit': mydata.value } });
|
||||
} else if (mydata.dbop === 'noComune') {
|
||||
await User.findOneAndUpdate({ _id: mydata._id }, { $set: { 'profile.noComune': mydata.value } });
|
||||
} else if (mydata.dbop === 'noCircIta') {
|
||||
await User.findOneAndUpdate({ _id: mydata._id }, { $set: { 'profile.noCircIta': mydata.value } });
|
||||
} else if (mydata.dbop === 'insert_circuito_ita') {
|
||||
|
||||
@@ -441,6 +441,10 @@ class UserService {
|
||||
{ _id: mydata._id },
|
||||
{ $set: { 'profile.noCircuit': mydata.value } }
|
||||
),
|
||||
'noComune': () => User.findOneAndUpdate(
|
||||
{ _id: mydata._id },
|
||||
{ $set: { 'profile.noComune': mydata.value } }
|
||||
),
|
||||
'noCircIta': () => User.findOneAndUpdate(
|
||||
{ _id: mydata._id },
|
||||
{ $set: { 'profile.noCircIta': mydata.value } }
|
||||
|
||||
Reference in New Issue
Block a user