Skip to content

Commit

Permalink
fix: task resource
Browse files Browse the repository at this point in the history
  • Loading branch information
hekmatinasser committed Feb 22, 2024
1 parent a28ed2c commit 7ea194b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Resources/TaskResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function toArray(Request $request): array
'user' => new UserResource($this->user),
'title' => $this->title,
'description' => $this->description,
'completed_at' => $this->completed_at->toDateTimeString(),
'completed_at' => $this->completed_at?->toDateTimeString(),
'created_at' => $this->created_at->toDateTimeString(),
];
}
Expand Down

0 comments on commit 7ea194b

Please sign in to comment.