fix: task id cannot ever be null

This commit is contained in:
Miguel Nogueira 2025-04-14 00:05:13 +01:00
parent e39f40644f
commit 0ff8ffdb05

View File

@ -124,7 +124,7 @@ class Task
{
$task = new self();
$task->id = $data['id'] ?? null;
$task->id = $data['id'];
// task owner is discarded from input array
$task->createdAt = Carbon::parse($data['created_at']);
$task->updatedAt = Carbon::parse($data['updated_at']);