Fix movements only for the circuitId selected

This commit is contained in:
paoloar77
2022-11-06 15:18:25 +01:00
parent 1ac27a7e1a
commit 32dcc1702d

View File

@@ -318,6 +318,9 @@ MovementSchema.statics.getQueryAllUsersMovsByCircuitId = async function(idapp, c
preserveNullAndEmptyArrays: true,
},
},
{
$match: {'accto.circuitId': circuitId},
},
{
'$lookup': {
'from': 'circuits',