diff --git a/packages/backend/src/controller/task.controller.ts b/packages/backend/src/controller/task.controller.ts index 07aa71f36c3b523f5ead44b829c2587512438c24..0426ed46e485cc95fd02fc7eb2cba10a4836b222 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, })