Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
vicholp committed Dec 19, 2023
1 parent ed7b27a commit 6262155
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/Services/SynchronizationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -134,7 +134,6 @@ public function syncTrack(Release $release, string $trackId): Track
'mb_data' => json_encode($mbTrack),
]);


return $track;
}

Expand Down

0 comments on commit 6262155

Please sign in to comment.