#101 event service edited
This commit is contained in:
parent
267bd5b0f3
commit
961a6a318e
@ -123,7 +123,6 @@ public class EventService {
|
||||
List<Timeline> timelines = timelineService.findAll();
|
||||
Timeline timeline = timelines.isEmpty() ? new Timeline() : timelines.get(0);
|
||||
objectClassName = newObject.getClass().getName();
|
||||
|
||||
switch(objectClassName) {
|
||||
case "ru.ulstu.paper.model.Paper":
|
||||
newPaper = (Paper)newObject;
|
||||
@ -240,7 +239,6 @@ public class EventService {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void updatePaperDeadlines(Paper paper) {
|
||||
List<Event> foundEvents = eventRepository.findAllByPaper(paper);
|
||||
eventRepository.delete(foundEvents);
|
||||
|
Loading…
Reference in New Issue
Block a user