mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2026-10-25 23:17:56 +00:00
fix: fix tasks submission journey
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user