Skip to content

Commit

Permalink
Merge pull request #14 from tv2regionerne/fix/cron-job-query
Browse files Browse the repository at this point in the history
Fix cron job query
  • Loading branch information
Sylvester Damgaard authored Mar 20, 2024
2 parents 6d3628a + 2f9e1b4 commit fed838e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Console/ClearLocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public function handle()
$this->info('Clearing locks...');
$this->line('');

LockModel::where('updated_by', '<', Carbon::now()->subMinutes(config('statamic-locks.clear_locks_after', 5)))
LockModel::where('updated_at', '<', Carbon::now()->subMinutes(config('statamic-locks.clear_locks_after', 5)))
->get()
->each
->delete();

Expand Down

0 comments on commit fed838e

Please sign in to comment.