Fixing MySQL error
This commit is contained in:
parent
1cc4ac9a95
commit
82f543a587
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class RunMonitoring extends Command
|
||||||
// Getting pending tasks
|
// Getting pending tasks
|
||||||
$tasks = DB::table('tasks')
|
$tasks = DB::table('tasks')
|
||||||
->where(function($query) {
|
->where(function($query) {
|
||||||
$query->whereRaw('DATE_SUB(now(), INTERVAL frequency SECOND) > last_execution');
|
$query->whereRaw('DATE_SUB('.time().', INTERVAL frequency SECOND) > last_execution');
|
||||||
$query->orWhereNull('last_execution');
|
$query->orWhereNull('last_execution');
|
||||||
})
|
})
|
||||||
->where('active', 1)
|
->where('active', 1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue