mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
adjusted the continuing anime filter 4
This commit is contained in:
parent
f775fbce41
commit
cc381969a7
@ -12,7 +12,7 @@ use Illuminate\Contracts\Database\Query\Builder as EloquentBuilder;
|
||||
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>
|
||||
@ -175,7 +175,7 @@ final class DefaultAnimeRepository extends DatabaseRepository implements AnimeRe
|
||||
'dateString' => '$aired.from'
|
||||
]
|
||||
],
|
||||
'endDate' => new Javascript('new Date("' . $from->toAtomString() . '")'),
|
||||
'endDate' => new UTCDateTime($from),
|
||||
'unit' => 'month'
|
||||
]
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user