From 626215596fbe7b11e5e3e3409767fff5e246553b Mon Sep 17 00:00:00 2001 From: vicholp Date: Mon, 18 Dec 2023 23:17:25 -0300 Subject: [PATCH] hotfix --- app/Services/SynchronizationService.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Services/SynchronizationService.php b/app/Services/SynchronizationService.php index 750a776..5577c8e 100644 --- a/app/Services/SynchronizationService.php +++ b/app/Services/SynchronizationService.php @@ -75,10 +75,10 @@ public function syncServer(Server $server): void array_push($batch, new SyncAlbumFromBeetsJob($server, $album['mb_albumid'], $album['id'])); } - array_push($batch, new CheckServerTracksJob($server)); - Bus::batch($batch)->allowFailures() - ->finally(function () { + ->finally(function () use ($server) { + new CheckServerTracksJob($server); + $this->recreateIndex(); }) ->dispatch(); @@ -134,7 +134,6 @@ public function syncTrack(Release $release, string $trackId): Track 'mb_data' => json_encode($mbTrack), ]); - return $track; }