feat: working on saving goals jounrey for juniors

This commit is contained in:
Abdalhamid Alhamad
2024-12-15 12:44:59 +03:00
parent 24d990592d
commit 4d2f6f57f4
35 changed files with 754 additions and 2 deletions

View File

@ -23,7 +23,6 @@ export class TaskController {
@AllowedRoles(Roles.GUARDIAN)
async createTask(@AuthenticatedUser() { sub }: IJwtPayload, @Body() body: CreateTaskRequestDto) {
const task = await this.taskService.createTask(sub, body);
console.log(task.dueDate);
return ResponseFactory.data(new TaskResponseDto(task));
}

View File

@ -37,7 +37,6 @@ export class TaskService {
async findTasks(user: IJwtPayload, query: TasksFilterOptions): Promise<[Task[], number]> {
const [tasks, count] = await this.taskRepository.findTasks(user, query);
console.log(tasks);
await this.prepareTasksPictures(tasks);
return [tasks, count];