Skip to content

Commit

Permalink
Do Lackey step last
Browse files Browse the repository at this point in the history
  • Loading branch information
amcsi committed Feb 16, 2024
1 parent f413777 commit 543d108
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/Console/Commands/ImportAllCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,6 @@ public function handle()
$this->call(AutoTranslateCommand::COMMAND);
$this->call(DeeplTranslateCommand::COMMAND);

if ($this->option('lackey')) {
try {
$this->call(BuildLackeyCommand::COMMAND);
} catch (\Throwable $exception) {
Log::warning((string) $exception);
}
}

if ($this->option('images')) {
$this->call(ImageDownloadCommand::COMMAND, ['--new-only' => true]);
$this->call(ImageUploadCommand::COMMAND, ['--new-only' => true]);
Expand All @@ -84,5 +76,13 @@ public function handle()
if (count($newCards)) {
app(GlobalNotifiable::class)->notify(new NewCardsNotification($newCards));
}

if ($this->option('lackey')) {
try {
$this->call(BuildLackeyCommand::COMMAND);
} catch (\Throwable $exception) {
Log::warning((string) $exception);
}
}
}
}

0 comments on commit 543d108

Please sign in to comment.