Skip to content

Commit

Permalink
Update nova-busy-resource-field config and command to use 'threshold-…
Browse files Browse the repository at this point in the history
…old' instead of 'treasure-old'.
  • Loading branch information
murdercode committed Jan 22, 2024
1 parent ae99f40 commit 5de1821
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/nova-busy-resource-field.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

return [
'treasure-old' => 30, // in seconds
'threshold-old' => 30, // in seconds
];
2 changes: 1 addition & 1 deletion src/App/Console/Commands/BusyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ class BusyCommand extends Command
*/
public function handle()
{
DB::table('busiables')->where('updated_at', '<', now()->subSeconds(config('nova-busy-resource-field.treasure-old'))->format('Y-m-d H:i:s'))->delete();
DB::table('busiables')->where('updated_at', '<', now()->subSeconds(config('nova-busy-resource-field.threshold-old'))->format('Y-m-d H:i:s'))->delete();
}
}

0 comments on commit 5de1821

Please sign in to comment.