Update ownercheck side effect
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / introspection / sideeffect / OwnerCheck.java
index a32c4ec..061c640 100644 (file)
@@ -48,8 +48,8 @@ public class OwnerCheck extends SideEffect {
         if (serializer.getGroups() != null && !serializer.getGroups().isEmpty()) {
             List<Vertex> owningEntity = self.graph().traversal()
                 .V(self)
-                .inE("org.onap.relationships.inventory.BelongsTo")
-                .outV()
+                .bothE("org.onap.relationships.inventory.BelongsTo")
+                .otherV()
                 .has("aai-node-type", "owning-entity")
                 .toList();