Skip to content

A self-hosted media server and file management system

fix: task service is treated as string

aminnausind3d4feb870c3
diff --git a/app/Jobs/IndexFiles.php b/app/Jobs/IndexFiles.php
index 98ac6819..b9cc5f32 100755
--- a/app/Jobs/IndexFiles.php
+++ b/app/Jobs/IndexFiles.php
@@ -38,7 +38,7 @@ class IndexFiles extends ManagedTaskJob {
* Execute the job.
*/
public function handle(TaskService $taskService): void {
- $this->$taskService = $taskService; // Only for this job for compatibility since this will be re-written soon
+ $this->taskService = $taskService; // Only for this job for compatibility since this will be re-written soon
$this->beginTask($taskService, 'Starting Index Files');
dump('Starting Index Files');
diff --git a/app/Jobs/SyncFiles.php b/app/Jobs/SyncFiles.php
index dfbf8218..32cae93c 100755
--- a/app/Jobs/SyncFiles.php
+++ b/app/Jobs/SyncFiles.php
@@ -61,7 +61,7 @@ class SyncFiles extends ManagedTaskJob {
$directories = $this->generateCategories($taskService);
$subDirectories = $this->generateFolders($taskService);
- $files = $this->generateVideos($subDirectories['data']['folderStructure'], $directories['data']['categoryStructure']);
+ $files = $this->generateVideos($taskService, $subDirectories['data']['folderStructure']); // idk what this 2nd/3rd parameter was $directories['data']['categoryStructure']
if (isset($files['updatedFolderStructure'])) {
$subDirectories['data']['folderStructure'] = $files['updatedFolderStructure'];