We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c94af9c commit 8517976Copy full SHA for 8517976
src/main/java/org/woehlke/java/simpleworklist/domain/task/TaskServiceImpl.java
@@ -221,7 +221,11 @@ public void emptyTrash(@NotNull Context context) {
221
taskListChanged.add(task);
222
}
223
taskRepository.saveAll(taskListChanged);
224
- taskRepository.deleteAll(taskListChanged);
+ List<Task> taskListDeleted = taskRepository.findByTaskStateAndContext(
225
+ TaskState.DELETED,
226
+ context
227
+ );
228
+ taskRepository.deleteAll(taskListDeleted);
229
230
231
@Override
0 commit comments