Skip to content

Commit

Permalink
fix: fix demo reset (#971)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Jun 5, 2021
1 parent 8f564d2 commit 90c51df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/Demo/ResetDemo.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function handle(): void
try {
Artisan::call('down');

$this->line('Downlading file...');
$this->line('Downloading file...');
$file = Http::get('https://github.com/officelifehq/demosql/raw/main/officelife.sql');

$this->line('Running transaction...');
Expand Down
4 changes: 3 additions & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ protected function schedule(Schedule $schedule)
}

if (config('officelife.demo_mode')) {
$schedule->command('demo:reset', ['--force' => true])->hourly();
$schedule->command('demo:reset', ['--force'])
->everyFiveMinutes()
->emailOutputOnFailure(config('officelife.email_instance_administrator'));
}
}

Expand Down

0 comments on commit 90c51df

Please sign in to comment.