Skip to content

Commit

Permalink
change comparison to match with database query
Browse files Browse the repository at this point in the history
  • Loading branch information
sinnbeck committed Feb 16, 2024
1 parent 56af51e commit 1362cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/StorageFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function store(Collection $items): void
*/
public function trim(): void
{
$this->stored = $this->stored->reject(fn($record) => $record->timestamp < now()->subWeek()->timestamp);
$this->stored = $this->stored->reject(fn($record) => $record->timestamp <= now()->subWeek()->timestamp);
}

/**
Expand Down

0 comments on commit 1362cb6

Please sign in to comment.