mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
Remove unused function
This commit is contained in:
parent
4c83c661fe
commit
d012646537
|
@ -195,16 +195,4 @@ public class OrderController {
|
|||
}
|
||||
return "redirect:/event";
|
||||
}
|
||||
|
||||
@PostMapping("/event/changeOrderTime")
|
||||
@PreAuthorize("hasRole('CUSTOMER')")
|
||||
public String changeOrderTime(@RequestParam(name = "start") Optional<String> startTime, @RequestParam(name = "finish") Optional<String> finishTime, @ModelAttribute("event") CustomCart cart) {
|
||||
LocalDateTime start = LocalDateTime.parse(startTime.orElse("2024-12-03T10:15:30"));
|
||||
LocalDateTime finish = LocalDateTime.parse(finishTime.orElse("2024-12-03T10:19:30"));
|
||||
|
||||
cart.setStart(start);
|
||||
cart.setFinish(finish);
|
||||
|
||||
return "redirect:/event";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue