A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: index files command uses old style
aminnausin7ca0c936ce8c
diff --git a/app/Console/Commands/IndexFilesCommand.php b/app/Console/Commands/IndexFilesCommand.phpindex 464f9ce8..cb3ce960 100644--- a/app/Console/Commands/IndexFilesCommand.php+++ b/app/Console/Commands/IndexFilesCommand.php@@ -30,28 +30,21 @@ class IndexFilesCommand extends Command {public function handle() {$name = 'Console Index Files';- $description = 'Looks for folder and video changes in in all Libraries.';- $this->info('Starting Index Files');-- try {- $this->info('Index Files Queued!');- $this->fileJobService->executeBatchOperation(- userId: null,- name: $name,- description: $description,- chain: function ($task) {- return [- new SyncFiles($task->id),- new IndexFiles($task->id),- ];- },- );-- return true;- } catch (\Throwable $th) {- $this->error($th->getMessage());-- return false;- }+ $description = 'Looks for folder and video changes in in all libraries.';+ $this->info('Starting Index Files...');++ $this->fileJobService->executeBatchOperation(+ userId: null,+ name: $name,+ description: $description,+ chain: function ($task) {+ return [+ new SyncFiles($task->id),+ new IndexFiles($task->id),+ ];+ },+ );++ $this->info('Index Files Queued!');}}