Skip to content

Commit

Permalink
major fix for optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
carduz committed Jan 6, 2016
1 parent 35dd53e commit 18ebf0c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/Console/Commands/Optimise/OptimiseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ private function makeForeground(Company $company)

private function syncAll()
{
$calendars = Caldav::all();
$companies = Company::all();
if ($this->option('background')) {
\Log::debug(self::BACKGROUND_MOD_MEX);
$this->info(self::BACKGROUND_MOD_MEX);
foreach ($calendars as $calendar)
$this->makeBackground($calendar);
foreach ($companies as $company)
$this->makeBackground($company);
\Log::debug(self::BACKGROUND_COMPLETED_MEX);
$this->info(self::BACKGROUND_COMPLETED_MEX);
} else
foreach ($calendars as $calendar)
$this->makeForeground($calendar);
foreach ($companies as $company)
$this->makeForeground($company);
}

/**
Expand Down

0 comments on commit 18ebf0c

Please sign in to comment.