From a856bf2c463a5f0d40917e157fe490fa82fab516 Mon Sep 17 00:00:00 2001 From: rigonlucas Date: Tue, 27 Aug 2024 22:42:51 -0300 Subject: [PATCH] fix test --- infra/Database/Project/Command/ProjectCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/Database/Project/Command/ProjectCommand.php b/infra/Database/Project/Command/ProjectCommand.php index aaaf7e6..87ae427 100644 --- a/infra/Database/Project/Command/ProjectCommand.php +++ b/infra/Database/Project/Command/ProjectCommand.php @@ -17,7 +17,7 @@ public function create(ProjectEntity $projectEntity): ProjectEntity $project->description = $projectEntity->getDescription(); $project->account_id = $projectEntity->getAccount()->getId(); $project->created_by_user_id = $projectEntity->getUser()->getId(); - $project->status = null; + $project->status = $projectEntity->getStatus()->value; $project->start_at = $projectEntity->getStartAt()?->startOfDay(); $project->finish_at = $projectEntity->getFinishAt()?->startOfDay(); $project->uuid = $projectEntity->getUuid()->toString();