Fixes #4613 -- Fix minor issues with sync:run
This commit is contained in:
parent
ae090f96eb
commit
784438fd80
4
Makefile
4
Makefile
|
@ -32,10 +32,10 @@ update: # Update everything (i.e. after a branch update)
|
||||||
$(MAKE) up
|
$(MAKE) up
|
||||||
|
|
||||||
test:
|
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:
|
bash:
|
||||||
docker-compose run --rm --user=azuracast web bash
|
docker-compose exec --user=azuracast web bash
|
||||||
|
|
||||||
frontend-bash:
|
frontend-bash:
|
||||||
docker-compose -f frontend/docker-compose.yml build
|
docker-compose -f frontend/docker-compose.yml build
|
||||||
|
|
|
@ -11,9 +11,11 @@ class SyncCommand extends CommandAbstract
|
||||||
{
|
{
|
||||||
public function __invoke(
|
public function __invoke(
|
||||||
Runner $sync,
|
Runner $sync,
|
||||||
string $task = App\Event\GetSyncTasks::SYNC_NOWPLAYING,
|
?string $task = null,
|
||||||
bool $force = false
|
bool $force = false
|
||||||
): int {
|
): int {
|
||||||
|
$task ??= App\Event\GetSyncTasks::SYNC_NOWPLAYING;
|
||||||
|
|
||||||
$sync->runSyncTask($task, $force);
|
$sync->runSyncTask($task, $force);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue