Skip to content

Commit

Permalink
adjusted the continuing anime filter 4
Browse files Browse the repository at this point in the history
  • Loading branch information
pushrbx committed Jun 20, 2024
1 parent f775fbc commit cc38196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Repositories/DefaultAnimeRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Carbon;
use Laravel\Scout\Builder as ScoutBuilder;
use MongoDB\BSON\Javascript;
use MongoDB\BSON\UTCDateTime;

/**
* @implements Repository<Anime>
Expand Down Expand Up @@ -175,7 +175,7 @@ public function getItemsBySeason(
'dateString' => '$aired.from'
]
],
'endDate' => new Javascript('new Date("' . $from->toAtomString() . '")'),
'endDate' => new UTCDateTime($from),
'unit' => 'month'
]
],
Expand Down

0 comments on commit cc38196

Please sign in to comment.