-fixed: lista richieste ingresso ai gruppi
This commit is contained in:
@@ -309,7 +309,6 @@ MyGroupSchema.statics.getInfoGroupByGroupname = async function (idapp, groupname
|
|||||||
|
|
||||||
const query = [
|
const query = [
|
||||||
{ $match: myfind },
|
{ $match: myfind },
|
||||||
{ $unwind: '$mycircuits' },
|
|
||||||
{
|
{
|
||||||
$lookup: {
|
$lookup: {
|
||||||
from: 'circuits',
|
from: 'circuits',
|
||||||
@@ -337,6 +336,7 @@ MyGroupSchema.statics.getInfoGroupByGroupname = async function (idapp, groupname
|
|||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const ris = await MyGroup.aggregate(query);
|
const ris = await MyGroup.aggregate(query);
|
||||||
|
|
||||||
|
|||||||
@@ -196,6 +196,7 @@ module.exports = {
|
|||||||
'circuits',
|
'circuits',
|
||||||
'accounts',
|
'accounts',
|
||||||
'movements',
|
'movements',
|
||||||
|
'mygroups',
|
||||||
],
|
],
|
||||||
|
|
||||||
TABLES_ID_NUMBER: [
|
TABLES_ID_NUMBER: [
|
||||||
|
|||||||
Reference in New Issue
Block a user