diff --git a/src/server/models/mybacheca.js b/src/server/models/mybacheca.js index 81bbebe..e22cda0 100755 --- a/src/server/models/mybacheca.js +++ b/src/server/models/mybacheca.js @@ -72,6 +72,7 @@ const MyBachecaSchema = new Schema({ descr: { type: String, }, + //**ADDFIELD_MYBACHECAS website: { type: String, }, @@ -154,6 +155,8 @@ MyBachecaSchema.statics.executeQueryTable = function(idapp, params) { adType: 1, photos: 1, note: 1, + //**ADDFIELD_MYBACHECAS + website: 1, descr: 1, date_created: 1, date_updated: 1, @@ -239,6 +242,8 @@ MyBachecaSchema.statics.getMyRecById = function(idapp, id) { adType: 1, 'photos': 1, 'note': 1, + website: 1, + //**ADDFIELD_MYBACHECAS 'descr': 1, 'date_created': 1, 'date_updated': 1, @@ -289,6 +294,8 @@ MyBachecaSchema.statics.getMyRecById = function(idapp, id) { adType: 1, 'photos': 1, 'note': 1, + website: 1, + //**ADDFIELD_MYBACHECAS 'descr': 1, 'date_created': 1, 'date_updated': 1, @@ -339,6 +346,8 @@ MyBachecaSchema.statics.getMyRecById = function(idapp, id) { adType: 1, 'photos': 1, 'note': 1, + website: 1, + //**ADDFIELD_MYBACHECAS 'descr': 1, 'date_created': 1, 'date_updated': 1, @@ -389,6 +398,8 @@ MyBachecaSchema.statics.getMyRecById = function(idapp, id) { adType: 1, 'photos': 1, 'note': 1, + website: 1, + //**ADDFIELD_MYBACHECAS 'descr': 1, 'date_created': 1, 'date_updated': 1, @@ -439,6 +450,8 @@ MyBachecaSchema.statics.getMyRecById = function(idapp, id) { adType: 1, 'photos': 1, 'note': 1, + website: 1, + //**ADDFIELD_MYBACHECAS 'descr': 1, 'date_created': 1, 'date_updated': 1, diff --git a/src/server/models/mygroup.js b/src/server/models/mygroup.js index 305c191..25c9e7b 100755 --- a/src/server/models/mygroup.js +++ b/src/server/models/mygroup.js @@ -58,6 +58,7 @@ const MyGroupSchema = new Schema({ type: String, default: '', }, + //**ADDFIELD_MYGROUPS visibility: [ { type: Number, @@ -139,6 +140,7 @@ MyGroupSchema.statics.getWhatToShow = function (idapp, username) { photos: 1, idCity: 1, website: 1, + //**ADDFIELD_MYGROUPS link_telegram: 1, note: 1, admins: 1, diff --git a/src/server/models/myskill.js b/src/server/models/myskill.js index d781e38..2819aa6 100755 --- a/src/server/models/myskill.js +++ b/src/server/models/myskill.js @@ -72,6 +72,7 @@ const MySkillSchema = new Schema({ descr: { type: String, }, + //**ADDFIELD_MYSKILL website: { type: String, }, @@ -154,6 +155,8 @@ MySkillSchema.statics.executeQueryTable = function(idapp, params) { adType: 1, photos: 1, note: 1, + website: 1, + //**ADDFIELD_MYSKILL descr: 1, date_created: 1, date_updated: 1, @@ -238,7 +241,9 @@ MySkillSchema.statics.getMySkillByIdkill = function(idapp, idSkill) { 'numLevel': 1, adType: 1, 'photos': 1, - 'note': 1, + note: 1, + website: 1, + //**ADDFIELD_MYSKILL 'descr': 1, 'date_created': 1, 'date_updated': 1, @@ -289,6 +294,8 @@ MySkillSchema.statics.getMySkillByIdkill = function(idapp, idSkill) { adType: 1, 'photos': 1, 'note': 1, + website: 1, + //**ADDFIELD_MYSKILL 'descr': 1, 'date_created': 1, 'date_updated': 1, @@ -339,6 +346,8 @@ MySkillSchema.statics.getMySkillByIdkill = function(idapp, idSkill) { adType: 1, 'photos': 1, 'note': 1, + website: 1, + //**ADDFIELD_MYSKILL 'descr': 1, 'date_created': 1, 'date_updated': 1, @@ -389,6 +398,8 @@ MySkillSchema.statics.getMySkillByIdkill = function(idapp, idSkill) { adType: 1, 'photos': 1, 'note': 1, + website: 1, + //**ADDFIELD_MYSKILL 'descr': 1, 'date_created': 1, 'date_updated': 1, @@ -439,6 +450,8 @@ MySkillSchema.statics.getMySkillByIdkill = function(idapp, idSkill) { adType: 1, 'photos': 1, 'note': 1, + website: 1, + //**ADDFIELD_MYSKILL 'descr': 1, 'date_created': 1, 'date_updated': 1, diff --git a/src/server/router/users_router.js b/src/server/router/users_router.js index 89b8aaa..58e1efe 100755 --- a/src/server/router/users_router.js +++ b/src/server/router/users_router.js @@ -932,7 +932,7 @@ async function eseguiDbOp(idapp, mydata, locale) { // Svuota e Ricrea - const {City} = require('../models/city'); + const {City} = require('../modWels/city'); const {Province} = require('../models/province'); await City.deleteMany({});