Telegram WebHook logger injection fix.
This commit is contained in:
parent
6f9b457e7d
commit
71a6e2add8
|
@ -94,7 +94,7 @@ class UpdateSubscriptionsCommand extends Command
|
||||||
$this->progress = new ProgressBar($output);
|
$this->progress = new ProgressBar($output);
|
||||||
$this->progress->setFormat('debug');
|
$this->progress->setFormat('debug');
|
||||||
|
|
||||||
if ($input->getOption('check-only')) { // Beginning transaction for all changes
|
if (!$input->getOption('check-only')) { // Beginning transaction for all changes
|
||||||
$this->em->beginTransaction();
|
$this->em->beginTransaction();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,8 +126,8 @@ class UpdateSubscriptionsCommand extends Command
|
||||||
|
|
||||||
$this->progress->finish();
|
$this->progress->finish();
|
||||||
|
|
||||||
|
// Flushing all changes at once to the database
|
||||||
if ($input->getOption('check-only')) { // Flushing all changes at once to the database
|
if (!$input->getOption('check-only')) {
|
||||||
$this->em->flush();
|
$this->em->flush();
|
||||||
$this->em->commit();
|
$this->em->commit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue