From 852c4d608df21cab1bf4ec4b74e35f64f067022d Mon Sep 17 00:00:00 2001 From: lexx Date: Fri, 16 May 2025 13:27:25 +0300 Subject: [PATCH] thumbnail limit --- .phpactor.json | 4 ++++ src/Commands/RebuildThumbnails.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .phpactor.json diff --git a/.phpactor.json b/.phpactor.json new file mode 100644 index 0000000..fa298f8 --- /dev/null +++ b/.phpactor.json @@ -0,0 +1,4 @@ +{ + "$schema": "/phpactor.schema.json", + "language_server_phpstan.enabled": false +} \ No newline at end of file diff --git a/src/Commands/RebuildThumbnails.php b/src/Commands/RebuildThumbnails.php index ad3b0f6..5e5eca7 100644 --- a/src/Commands/RebuildThumbnails.php +++ b/src/Commands/RebuildThumbnails.php @@ -42,7 +42,7 @@ class RebuildThumbnails extends Command public function rebuildThumbnails(FilesSchema $schema): void { $this->info("Rebuilding thumbnails for ". $schema->name); - $records = $this->query->filter(["schema" => $schema->name])->run()->records; + $records = $this->query->limit(1000)->filter(["schema" => $schema->name])->run()->records; $disk = $this->fileService->loadDisk($schema->disk); foreach ($records as $record) { try{