test that all nodes up until given date are returned
This commit is contained in:
parent
2047cd72e7
commit
ec4dca87a6
2 changed files with 22 additions and 4 deletions
|
|
@ -27,8 +27,7 @@ class GetTodaysSchedule
|
|||
return array_filter(
|
||||
$scheduledNodes,
|
||||
function (ScheduledNode $node) use ($date) {
|
||||
return $node->getDate()->format('Y-m-d')
|
||||
=== $date->format('Y-m-d');
|
||||
return $node->getDate() <= $date;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue