fix offset/limit

This commit is contained in:
ghost 2023-10-18 19:41:08 +03:00
parent 33e950bb42
commit d3cdbc831c

View file

@ -26,8 +26,8 @@ class TorrentRepository extends ServiceEntityRepository
array $locales,
?bool $sensitive = null,
?bool $approved = null,
int $limit = 0,
int $offset = 10
int $limit = 10,
int $offset = 0
): int
{
return $this->getTorrentsQueryByFilter(
@ -45,8 +45,8 @@ class TorrentRepository extends ServiceEntityRepository
array $locales,
?bool $sensitive = null,
?bool $approved = null,
int $limit = 0,
int $offset = 10
int $limit = 10,
int $offset = 0
): array
{
return $this->getTorrentsQueryByFilter(