fix(podcast-import): remove error log when no import in queue, exit with success instead

This commit is contained in:
Yassine Doghri 2023-07-11 10:28:19 +00:00
parent 082cdc9ee7
commit 5e719f3e9e
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ class PodcastImport extends BaseCommand
$nextImport = end($queuedImports);
if (! $nextImport instanceof PodcastImportTask) {
throw new Exception('No import in queue.');
// no queued import task, stop process.
exit(0);
}
$this->importTask = $nextImport;