Fix query

This commit is contained in:
2025-07-04 12:24:01 +02:00
parent 143fb9569a
commit 4bd5066be4

View File

@@ -36,7 +36,7 @@ public interface DashboardScenarioExecutionRepository extends MongoRepository<Sc
List<User> findUsersByLstProjectsIn(List<ObjectId> projectIds);
@Aggregation(pipeline = {
"{ '$match': { 'startDate': { '$gte': ?0, '$lte': ?1 }, 'scenario.account': ?2, 'execSharedMap.user_input.selected_project': { '$in': ?3 } } }",
"{ '$match': { 'startDate': { '$gte': ?0, '$lte': ?1 }, 'scenario.account': ?2 } }",
"{ '$group': { '_id': '$scenario._id' } }",
"{ '$project': { '_id': 0, 'scenarioId': '$_id' } }"
})