move instantiation of date time immutable to use case. request gets a string
This commit is contained in:
parent
d7fdbc20ee
commit
c32087c35d
4 changed files with 8 additions and 10 deletions
|
|
@ -59,7 +59,7 @@ class CreatePlan
|
|||
foreach ($nodesOfText as $node) {
|
||||
$this->createScheduledNode->execute(
|
||||
new CreateScheduledNodeRequest(
|
||||
date: new DateTimeImmutable(),
|
||||
date: '2025-01-01', // TODO: this should be cycling over some list of dates
|
||||
planId: $plan->getId(),
|
||||
)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue