diff --git a/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java b/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java index af89c423..81dc5b3d 100644 --- a/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java +++ b/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java @@ -203,13 +203,7 @@ public class LacertaVcsImpl implements LacertaVcs { } private ArrayList getLogInRev(VcsRevEntity revEntity) { - ArrayList vcsLogEntities = new ArrayList<>(); - revEntity.logIds.forEach(logId -> { - VcsLogEntity vcsLogEntity = database.vcsLogDao().findById(logId); - vcsLogEntities.add(vcsLogEntity); - }); - - return vcsLogEntities; + return new ArrayList<>(database.vcsLogDao().findByIds(revEntity.logIds)); } @Override