- Visu Saldo su Home
- SendRisTo - Movimenti conto Comunitario - Profilo
This commit is contained in:
@@ -1983,6 +1983,8 @@ module.exports = {
|
||||
});
|
||||
if (params.filterand.includes(shared_consts.FILTER_USER_TELEGRAM_BLOCKED))
|
||||
filtriadded.push({ 'profile.teleg_id_old': { $gt: 1 } });
|
||||
if (params.filterand.includes(shared_consts.FILTER_USER_PROVINCE))
|
||||
filtriadded.push({ 'profile.resid_province': { $exists: true } });
|
||||
if (params.filterand.includes(shared_consts.FILTER_ATTIVI))
|
||||
filtriadded.push({
|
||||
$or: [
|
||||
@@ -2295,7 +2297,22 @@ module.exports = {
|
||||
|
||||
const { Movement } = require('../models/movement');
|
||||
|
||||
const myquery = await Movement.getQueryMovsByCircuitId(params.idapp, params.username, params.myid);
|
||||
const myquery = await Movement.getQueryMovsByCircuitId(params.idapp, params.username, '', '', params.myid);
|
||||
|
||||
query.push(...myquery);
|
||||
} else if (params.querytype === shared_consts.QUERYTYPE_LIST_MOVEMENTS_GROUPNAME) {
|
||||
|
||||
const { Movement } = require('../models/movement');
|
||||
|
||||
const myquery = await Movement.getQueryMovsByCircuitId(params.idapp, '', params.groupname, '', params.myid);
|
||||
|
||||
query.push(...myquery);
|
||||
|
||||
} else if (params.querytype === shared_consts.QUERYTYPE_LIST_MOVEMENTS_CONTOCOM) {
|
||||
|
||||
const { Movement } = require('../models/movement');
|
||||
|
||||
const myquery = await Movement.getQueryMovsByCircuitId(params.idapp, '', '', params.contocom, params.myid);
|
||||
|
||||
query.push(...myquery);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user