#101 event service edited

This commit is contained in:
a.vasin 2019-06-01 11:51:01 +04:00
parent 267bd5b0f3
commit 961a6a318e

View File

@ -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);