Skip to content

Commit 2e643ee

Browse files
committed
chore: Cleanup log output; don't show info for profiles if not enabled
1 parent 778d548 commit 2e643ee

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/Console/Commands/ReconcileProfileConnections.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ public function handle(): int
4141
}
4242

4343
if ($playlists->isEmpty()) {
44-
$this->info('No playlists with profiles enabled found.');
4544

4645
return self::SUCCESS;
4746
}

app/Jobs/RefreshPlaylistProfiles.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ protected function refreshAllProfiles(): void
7070
{
7171
$playlists = Playlist::where('profiles_enabled', true)->get();
7272

73+
if ($playlists->isEmpty()) {
74+
// If no playlists with profiles enabled, nothing to do
75+
return;
76+
}
77+
7378
Log::info('Starting refresh of all playlist profiles', [
7479
'playlist_count' => $playlists->count(),
7580
]);

0 commit comments

Comments
 (0)