Update description

This commit is contained in:
Marcus Moore 2025-03-12 16:44:37 -07:00
parent 9cea6cee26
commit 32b194ddc7
No known key found for this signature in database

View file

@ -15,13 +15,12 @@ class FixActionLogTimestamps extends Command
*/
protected $signature = 'snipeit:fix-action-log-timestamps {--dryrun : Run the sync process but don\'t update the database}';
// @todo:
/**
* The console command description.
*
* @var string
*/
protected $description = 'Command description';
protected $description = 'This script attempts to fix timestamps and missing created_by values for bulk checkin entries in the log table';
private bool $dryrun = false;
@ -42,8 +41,6 @@ class FixActionLogTimestamps extends Command
// Logs that were improperly timestamped should have created_at in the 1970s
$logs = Actionlog::whereYear('created_at', '1970')->get();
// @todo: handle created_by being null...
$this->info('Found ' . $logs->count() . ' logs with incorrect timestamps:');
$this->table(