- Gruppi
This commit is contained in:
@@ -10,8 +10,8 @@ const { authenticate } = require('../middleware/authenticate');
|
||||
const mongoose = require('mongoose').set('debug', false)
|
||||
|
||||
const { User } = require('../models/user');
|
||||
const { Nave } = require('../models/nave');
|
||||
const { ListaIngresso } = require('../models/listaingresso');
|
||||
// const { Nave } = require('../models/nave');
|
||||
// const { ListaIngresso } = require('../models/listaingresso');
|
||||
|
||||
const _ = require('lodash');
|
||||
|
||||
@@ -26,8 +26,8 @@ router.post('/load', async (req, res) => {
|
||||
|
||||
let datastat = {
|
||||
num_reg: await User.getUsersRegistered(idapp),
|
||||
num_passeggeri: await Nave.getTotInLista(idapp),
|
||||
num_imbarcati: await ListaIngresso.getTotInLista(idapp),
|
||||
num_passeggeri: await 0,
|
||||
num_imbarcati: 0,
|
||||
email_non_verif: await User.getEmailNotVerified(idapp),
|
||||
num_teleg_attivo: await User.getUsersTelegramAttivo(idapp),
|
||||
num_teleg_pending: await User.getUsersTelegramPending(idapp),
|
||||
@@ -39,8 +39,8 @@ router.post('/load', async (req, res) => {
|
||||
arr_nations: await User.findAllDistinctNationality(idapp),
|
||||
numreg_untilday: await User.calcnumRegUntilDay(idapp),
|
||||
reg_daily: await User.calcRegDaily(idapp),
|
||||
imbarcati_daily: await ListaIngresso.ImbarcatiDaily(idapp),
|
||||
imbarcati_weekly: await ListaIngresso.ImbarcatiWeekly(idapp),
|
||||
imbarcati_daily: 0,
|
||||
imbarcati_weekly: 0,
|
||||
reg_weekly: await User.calcRegWeekly(idapp),
|
||||
lastsreg: await User.getLastUsers(idapp),
|
||||
checkuser: await User.checkUser(idapp, username),
|
||||
|
||||
Reference in New Issue
Block a user