From d1fe47db6f2b1d2e77b27c257f4df2df0efad886 Mon Sep 17 00:00:00 2001 From: reynisson Date: Sun, 28 Nov 2021 17:13:14 +0100 Subject: [PATCH] Retrieve task from memory to be able to check task results. Temp fix until we start updating tasks in DB --- .../application/service/RetrieveTaskFromTaskListService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tapas-tasks/src/main/java/ch/unisg/tapastasks/tasks/application/service/RetrieveTaskFromTaskListService.java b/tapas-tasks/src/main/java/ch/unisg/tapastasks/tasks/application/service/RetrieveTaskFromTaskListService.java index 39026f5..696514b 100644 --- a/tapas-tasks/src/main/java/ch/unisg/tapastasks/tasks/application/service/RetrieveTaskFromTaskListService.java +++ b/tapas-tasks/src/main/java/ch/unisg/tapastasks/tasks/application/service/RetrieveTaskFromTaskListService.java @@ -28,6 +28,6 @@ public class RetrieveTaskFromTaskListService implements RetrieveTaskFromTaskList Optional taskFromRepo = Optional.ofNullable(loadTaskFromRepositoryPort.loadTask(query.getTaskId(), taskList.getTaskListName())); - return taskFromRepo; + return task; } }