Fixes #4613 -- Fix minor issues with sync:run

This commit is contained in:
Buster "Silver Eagle" Neece 2021-11-19 15:30:00 -06:00
parent ae090f96eb
commit 784438fd80
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
2 changed files with 5 additions and 3 deletions

View File

@ -32,10 +32,10 @@ update: # Update everything (i.e. after a branch update)
$(MAKE) up
test:
docker-compose run --rm --user=azuracast web composer run cleanup-and-test
docker-compose exec --user=azuracast web composer run cleanup-and-test
bash:
docker-compose run --rm --user=azuracast web bash
docker-compose exec --user=azuracast web bash
frontend-bash:
docker-compose -f frontend/docker-compose.yml build

View File

@ -11,9 +11,11 @@ class SyncCommand extends CommandAbstract
{
public function __invoke(
Runner $sync,
string $task = App\Event\GetSyncTasks::SYNC_NOWPLAYING,
?string $task = null,
bool $force = false
): int {
$task ??= App\Event\GetSyncTasks::SYNC_NOWPLAYING;
$sync->runSyncTask($task, $force);
return 0;
}