Skip to content

A self-hosted media server and file management system

fix: task service is treated as string

aminnausin88ac4ad6e187
diff --git a/app/Jobs/IndexFiles.php b/app/Jobs/IndexFiles.php
index b1c0d8e4..dce088a1 100755
--- a/app/Jobs/IndexFiles.php
+++ b/app/Jobs/IndexFiles.php
@@ -37,7 +37,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'];