From c5c2743f9e5d10d8a37580cfacfff082e3232a2e Mon Sep 17 00:00:00 2001
From: Philipp Christian Otto Zimmermann <philipp.c.o.zimmermann@stud.h-da.de>
Date: Thu, 10 Dec 2020 10:24:20 +0100
Subject: [PATCH] Udate '/api/task'

---
 packages/backend/src/controller/task.controller.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/backend/src/controller/task.controller.ts b/packages/backend/src/controller/task.controller.ts
index 07aa71f..0426ed4 100644
--- a/packages/backend/src/controller/task.controller.ts
+++ b/packages/backend/src/controller/task.controller.ts
@@ -7,7 +7,7 @@ import { Tracking } from '../entity/tracking';
 //HTTP Get localhost:3000/api/task
 export const getTasks = async(_: Request, res: Response) => {
     const taskRepository = await getRepository(Task);
-    const allTasks = await taskRepository.find({relations: ["myLabels"]});
+    const allTasks = await taskRepository.find({relations:["myLabels", "allTrackings"]});
     res.send({
       data: allTasks,
     })
-- 
GitLab