Add debug

This commit is contained in:
James Cole
2021-04-22 19:56:42 +02:00
parent 418a682f7e
commit 105ecc4452

View File

@@ -34,6 +34,8 @@ class FixFrontpageAccounts extends Command
*/
public function handle(): int
{
$start = microtime(true);
$users = User::get();
/** @var User $user */
foreach ($users as $user) {
@@ -42,6 +44,8 @@ class FixFrontpageAccounts extends Command
$this->fixPreference($preference);
}
}
$end = round(microtime(true) - $start, 2);
$this->info(sprintf('Verifying account preferences took %s seconds', $end));
return 0;
}