Skip to content

A self-hosted media server and file management system

make index and sync files sync jobs

aminnausin5cf65d295e71
diff --git a/app/Http/Controllers/DirectoryController.php b/app/Http/Controllers/DirectoryController.php
index 693ad007..16e84c4c 100644
--- a/app/Http/Controllers/DirectoryController.php
+++ b/app/Http/Controllers/DirectoryController.php
@@ -137,7 +137,7 @@ class DirectoryController extends Controller
public function indexFiles(Request $request){
try {
- IndexFiles::dispatch();
+ IndexFiles::dispatchSync();
dump('success');
} catch (\Throwable $th) {
dump('Error cannot index files');
@@ -147,7 +147,7 @@ class DirectoryController extends Controller
public function syncFiles(Request $request){
try {
- SyncFiles::dispatch();
+ SyncFiles::dispatchSync();
dump('success');
} catch (\Throwable $th) {
dump('Error cannot sync files');