Fix movements only for the circuitId selected
This commit is contained in:
@@ -318,6 +318,9 @@ MovementSchema.statics.getQueryAllUsersMovsByCircuitId = async function(idapp, c
|
|||||||
preserveNullAndEmptyArrays: true,
|
preserveNullAndEmptyArrays: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
$match: {'accto.circuitId': circuitId},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'$lookup': {
|
'$lookup': {
|
||||||
'from': 'circuits',
|
'from': 'circuits',
|
||||||
|
|||||||
Reference in New Issue
Block a user