1

refactor aggregate build process

This commit is contained in:
Christoph
2020-03-09 13:25:38 +01:00
parent 94193d4f50
commit af4a12c892
3 changed files with 17 additions and 9 deletions

View File

@ -18,8 +18,7 @@ public class GroupService {
*/
Group buildGroupFromEvents(List<Event> eventList) {
Group newGroup = new Group();
eventList.forEach(newGroup::applyEvent);
newGroup.apply(eventList);
return newGroup;
}