diff --git a/app/Console/Commands/RunMonitoring.php b/app/Console/Commands/RunMonitoring.php index 47ce4a1..04404bf 100644 --- a/app/Console/Commands/RunMonitoring.php +++ b/app/Console/Commands/RunMonitoring.php @@ -51,7 +51,6 @@ class RunMonitoring extends Command $rounds = $this->argument('rounds') ?? $this->rounds; // Getting pending tasks - try { $tasks = DB::table('tasks') ->where(function($query) { $query->whereRaw('DATE_SUB(now(), INTERVAL frequency SECOND) > last_execution'); @@ -62,10 +61,6 @@ class RunMonitoring extends Command ->take($rounds) ->get() ; - } - catch (Exception $e) { - echo 'ERROR : '.$e->getMessage(); - } if (is_null($tasks) || count($tasks) == 0) { $this->info('No task to process, going back to sleep'); diff --git a/app/Console/Commands/SyncCustomers.php b/app/Console/Commands/SyncCustomers.php index 33976bf..1ac066f 100644 --- a/app/Console/Commands/SyncCustomers.php +++ b/app/Console/Commands/SyncCustomers.php @@ -19,7 +19,7 @@ class SyncCustomers extends Command * * @var string */ - protected $signature = 'customers:sync'; + protected $signature = 'monitolite:customers:sync'; /** * The console command description.