Skip to content

Commit

Permalink
Merge pull request #162 from kbss-cvut/fix/fta-fmea-ui-606-fault-tree…
Browse files Browse the repository at this point in the history
…s-should-have-unique-names

Use correct validator in fault tree service
  • Loading branch information
blcham authored Oct 10, 2024
2 parents 13f6e1e + 707cd5d commit ead2618
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ public System create(@RequestBody System system) {
public System rename(@RequestBody System system) {
log.info("> rename - {}", system);

System updatedTree = repositoryService.rename(system);
System updatedSystem = repositoryService.rename(system);

log.info("< rename - {}", updatedTree);
return updatedTree;
log.info("< rename - {}", updatedSystem);
return updatedSystem;
}

@ResponseStatus(HttpStatus.NO_CONTENT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class FaultTreeRepositoryService extends ComplexManagedEntityRepositorySe
private final FailureRateDao failureRateDao;

@Autowired
public FaultTreeRepositoryService(@Qualifier("defaultEntityValidator") EntityValidator validator,
public FaultTreeRepositoryService(@Qualifier("faultTreeValidator") EntityValidator validator,
FaultTreeDao faultTreeDao,
FaultEventScenarioDao faultEventScenarioDao,
FaultEventRepositoryService faultEventRepositoryService,
Expand Down

0 comments on commit ead2618

Please sign in to comment.