Fixed session bug, updated database, created show todos.

This commit is contained in:
maciejrusek
2026-05-06 22:22:15 +02:00
parent 89a76744a2
commit 45b08b310f
10 changed files with 129 additions and 26 deletions

View File

@@ -17,6 +17,16 @@ public class TaskService {
this.taskRepository = taskRepository;
}
public ArrayList<Task> getTasks() {
try {
return taskRepository.getUserTasks();
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
public ArrayList<Task> getUserTasksFilterByDate(Date startDate, Date endDate) {
try {
return taskRepository.getUserTasks(startDate, endDate);