fix: fix tasks submission journey

This commit is contained in:
Abdalhamid Alhamad
2024-12-12 15:22:04 +03:00
parent 5b7b7ff689
commit 24d990592d
6 changed files with 48 additions and 13 deletions
+1
View File
@@ -23,6 +23,7 @@ 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));
}