fix: skip demo reset when demo account is disabled
This commit is contained in:
parent
3d3f6daa77
commit
47c86f615d
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue