diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java index a1adac47b9..2c7d6df0f0 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -569,7 +569,7 @@ public class ApiDefinitionService { List pre = this.getRelationshipApi(oldApi.getId(), "PRE"); List targetIds = pre.stream().map(RelationshipEdgeKey::getTargetId).collect(Collectors.toList()); RelationshipEdgeRequest req = new RelationshipEdgeRequest(); - req.setSourceIds(targetIds); + req.setTargetIds(targetIds); req.setType("API"); req.setId(test.getId()); relationshipEdgeService.saveBatch(req);