sito Terra Della Visione...3
Pagina Operatori
This commit is contained in:
@@ -63,7 +63,7 @@ BotSchema.statics.executeQueryTable = function(idapp, params) {
|
|||||||
BotSchema.statics.DuplicateAllRecords = async function (idapporig, idappdest) {
|
BotSchema.statics.DuplicateAllRecords = async function (idapporig, idappdest) {
|
||||||
|
|
||||||
return tools.DuplicateAllRecords(this, idapporig, idappdest);
|
return tools.DuplicateAllRecords(this, idapporig, idappdest);
|
||||||
|
schermi
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ const OperatorSchema = new Schema({
|
|||||||
facebook: {
|
facebook: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
info: {
|
info: { // Biografia HTML
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
intro: {
|
intro: {
|
||||||
@@ -71,6 +71,12 @@ const OperatorSchema = new Schema({
|
|||||||
skype: {
|
skype: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
|
showInTeam: {
|
||||||
|
type: Boolean,
|
||||||
|
},
|
||||||
|
arrDisciplines: [{
|
||||||
|
type: String,
|
||||||
|
}],
|
||||||
});
|
});
|
||||||
|
|
||||||
OperatorSchema.statics.getEmailByUsername = async function (idapp, username) {
|
OperatorSchema.statics.getEmailByUsername = async function (idapp, username) {
|
||||||
|
|||||||
@@ -2974,7 +2974,7 @@ UserSchema.statics.calcnumRegUntilDay = async function(idapp) {
|
|||||||
UserSchema.statics.calcRegDaily = async function(idapp) {
|
UserSchema.statics.calcRegDaily = async function(idapp) {
|
||||||
const User = this;
|
const User = this;
|
||||||
|
|
||||||
return User.aggregate(User.getUsersRegDaily(idapp, 30)).then(ris => {
|
return User.aggregate(User.getUsersRegDaily(idapp, 60)).then(ris => {
|
||||||
// console.table(ris);
|
// console.table(ris);
|
||||||
return ris;
|
return ris;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ const {Settings} = require('../models/settings');
|
|||||||
const {SendMsg} = require('../models/sendmsg');
|
const {SendMsg} = require('../models/sendmsg');
|
||||||
const {Permission} = require('../models/permission');
|
const {Permission} = require('../models/permission');
|
||||||
const {MsgTemplate} = require('../models/msg_template');
|
const {MsgTemplate} = require('../models/msg_template');
|
||||||
|
const {Graduatoria} = require('../models/graduatoria');
|
||||||
const Product = require('../models/product');
|
const Product = require('../models/product');
|
||||||
const Producer = require('../models/producer');
|
const Producer = require('../models/producer');
|
||||||
const Cart = require('../models/cart');
|
const Cart = require('../models/cart');
|
||||||
|
|||||||
Reference in New Issue
Block a user