Remove unused function

This commit is contained in:
Mathis Kral 2023-11-21 23:24:53 +01:00
parent 4c83c661fe
commit d012646537

View file

@ -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";
}
}