Skip to content

Commit

Permalink
0005189: Made saveRouterAsCopy() return the router
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-miller-jumpmind committed Jan 6, 2022
1 parent 56a67da commit e7333d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -128,7 +128,7 @@ public interface ITriggerRouterService {

public void saveRouter(Router router);

public void saveRouterAsCopy(Router router);
public Router saveRouterAsCopy(Router router);

public void renameRouter(String oldId, Router router);

Expand Down
Expand Up @@ -1222,7 +1222,7 @@ public void saveRouter(Router router) {
clearCache();
}

public void saveRouterAsCopy(Router router) {
public Router saveRouterAsCopy(Router router) {
String newId = router.getRouterId();
List<Router> routers = sqlTemplate.query(
getSql("select ", "selectRoutersColumnList", "selectRoutersWhereRouterIdLikeSql"),
Expand All @@ -1234,6 +1234,7 @@ public void saveRouterAsCopy(Router router) {
}
router.setRouterId(newId + suffix);
saveRouter(router);
return router;
}

public void renameRouter(String oldId, Router router) {
Expand Down

0 comments on commit e7333d9

Please sign in to comment.