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,
|
||||
},
|
||||
},
|
||||
{
|
||||
$match: {'accto.circuitId': circuitId},
|
||||
},
|
||||
{
|
||||
'$lookup': {
|
||||
'from': 'circuits',
|
||||
|
||||
Reference in New Issue
Block a user