Skip to content

Commit

Permalink
new resolver for getting task by room
Browse files Browse the repository at this point in the history
  • Loading branch information
PranavGopinath committed Feb 1, 2025
1 parent 04d474c commit e9ff5aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/graphql/resolvers/taskResolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ const taskResolvers = {
const tasks = await taskService.getTasksByStartDate(startDate);
return tasks;
},
getTasksByRoom: async (
_parent: undefined,
{ assignerId }: { assignerId: number },
): Promise<TaskAssignedDTO[]> => {
const tasks = await taskService.getTasksByAssignerId(assignerId);
return tasks;
},
// getTasksByEndDate: async (
// _parent: undefined,
// { endDate }: { endDate: Date },
Expand Down

0 comments on commit e9ff5aa

Please # to comment.