adjusted the continuing anime filter 4

This commit is contained in:
pushrbx 2024-06-21 00:12:40 +01:00
parent f775fbce41
commit cc381969a7
No known key found for this signature in database
GPG Key ID: A16A474BBC2C91D9

View File

@ -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'
]
],