fix: skip demo reset when demo account is disabled

This commit is contained in:
Víctor Falcón 2026-07-03 09:10:32 +02:00
parent 3d3f6daa77
commit 47c86f615d
1 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,14 @@ class ResetDemoAccountCommand extends Command
public function handle(): int
{
$demoEnabled = config('app.demo.enabled');
if (! $demoEnabled) {
$this->info('Demo account is not enabled');
return self::SUCCESS;
}
$demoEmail = config('app.demo.email');
$demoPassword = config('app.demo.password');