Skip to content

Commit

Permalink
fix: [Console:EventShell] Correctly interpret returned data
Browse files Browse the repository at this point in the history
  • Loading branch information
mokaddem committed Sep 29, 2023
1 parent d84084c commit 2152343
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Console/Command/EventShell.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ public function import()

foreach ($results as $result) {
if (is_numeric($result['result'])) {
$this->out("Event `{$result['info']}` already exists at ({$result['result']}).");
} else if ($result['result'] === true) {
$this->out("Event #{$result['id']}: {$result['info']} imported.");
} else {
$this->out("Could not import event because of validation errors: " . json_encode($result['validationIssues']));
Expand Down

0 comments on commit 2152343

Please sign in to comment.