1

Merge refactor into error-handling + fix merge errors

Co-authored-by: [Mahgs] <maxoerter@gmx.de>
Co-authored-by: Christoph <tobi@urpost.de>
This commit is contained in:
Christoph
2020-03-18 23:45:07 +01:00
parent 849c94481c
commit 1c5139da8c
13 changed files with 19 additions and 34 deletions

View File

@ -4,6 +4,7 @@ import mops.gruppen2.domain.Group;
import mops.gruppen2.domain.User;
import mops.gruppen2.domain.event.Event;
import mops.gruppen2.domain.exception.EventException;
import mops.gruppen2.domain.exception.GroupNotFoundException;
import mops.gruppen2.repository.EventRepository;
import org.springframework.stereotype.Service;
@ -39,7 +40,7 @@ public class UserService {
public Group getGroupById(Long groupId) throws EventException {
List<Long> groupIds = new ArrayList<>();
group_ids.add(groupId);
groupIds.add(groupId);
try {
List<Event> events = groupService.getGroupEvents(groupIds);