refactor: 创建新接口版本时同步备注和依赖关系

This commit is contained in:
CaptainB 2022-01-16 14:19:16 +08:00 committed by 刘瑞斌
parent 5e0958acd6
commit e361c62c67
1 changed files with 1 additions and 1 deletions

View File

@ -569,7 +569,7 @@ public class ApiDefinitionService {
List<RelationshipEdgeDTO> pre = this.getRelationshipApi(oldApi.getId(), "PRE");
List<String> 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);