From 55d481f1fa96bfa21d2f76b754e3a79b27c7d7dd Mon Sep 17 00:00:00 2001 From: Stephanya Casanova Date: Mon, 21 Oct 2024 16:06:05 +0200 Subject: [PATCH] [backend] Fix param to retrieve asset groups from a raw map --- .../src/main/java/io/openbas/utils/AtomicTestingUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbas-api/src/main/java/io/openbas/utils/AtomicTestingUtils.java b/openbas-api/src/main/java/io/openbas/utils/AtomicTestingUtils.java index f9a2dd8db3..59da73e0ec 100644 --- a/openbas-api/src/main/java/io/openbas/utils/AtomicTestingUtils.java +++ b/openbas-api/src/main/java/io/openbas/utils/AtomicTestingUtils.java @@ -529,7 +529,7 @@ public static List getTargetsWithResultsFromRaw( // Loop into assetsToRefine to keep just assets linked to asset group for (InjectTargetWithResult asset : assetsToRefine) { - boolean foundExpectationForAsset = rawAssetGroupMap.get(assetGroupExpectationMap.get(entry.getKey())).getAsset_ids().stream() + boolean foundExpectationForAsset = rawAssetGroupMap.get(assetGroupExpectationMap.get(entry.getKey()).getAsset_group_id()).getAsset_ids().stream() .anyMatch(assetChild -> assetChild.equals(asset.getId())); // Verify if any expectation is related to a dynamic assets