fix (userlist): don't overwrite page parameter

line 20 specifically excludes "page" among other keys
This commit is contained in:
VernoxVernax 2023-10-27 05:20:29 +02:00
parent 6fcae72eb4
commit b4db19be7f
No known key found for this signature in database
GPG Key ID: BF70645D7856A06F

View File

@ -28,10 +28,6 @@ final class JikanUserListRequestMapperService
$values["sort"] = $values["sort"] === "asc" ? -1 : 1; $values["sort"] = $values["sort"] === "asc" ? -1 : 1;
} }
if (!array_key_exists("page", $values)) {
$values["page"] = 1;
}
if ($listType->equals(UserListTypeEnum::anime())) { if ($listType->equals(UserListTypeEnum::anime())) {
$rangeFrom = "airedFrom"; $rangeFrom = "airedFrom";
$rangeTo = "airedTo"; $rangeTo = "airedTo";