diff --git a/backend/src/controllers/tasks.controller.ts b/backend/src/controllers/tasks.controller.ts index a2328ae..4b3e9d9 100644 --- a/backend/src/controllers/tasks.controller.ts +++ b/backend/src/controllers/tasks.controller.ts @@ -8,7 +8,7 @@ export const getTasks = async (request: FastifyRequest, reply: FastifyReply) => const tasks = await request.server.prisma.task.findMany({ where: { ...(status && { status }), - ...(assigneeId && { assigneeId }), + ...(assigneeId && { assignedToId: assigneeId }), ...(roomId && { roomId }), ...(batchId && { batchId }), ...(startDate && endDate && {