Skip to content

Commit

Permalink
Fix return codes
Browse files Browse the repository at this point in the history
  • Loading branch information
zack6849 committed Dec 29, 2023
1 parent 8dc2ef2 commit ecc450f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/Console/Commands/QRZLogbookImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Console\Commands;

use Illuminate\Console\Command;
use Symfony\Component\Console\Command\Command as CommandAlias;

class QRZLogbookImport extends Command
{
Expand Down Expand Up @@ -30,6 +31,6 @@ public function handle()
$this->info("Syncing logbook from QRZ.com");
dispatch_sync(resolve(\App\Jobs\QRZLogbookImport::class));
$this->info("Sync complete");
return Command::SUCCESS;
return CommandAlias::SUCCESS;
}
}
3 changes: 2 additions & 1 deletion app/Console/Commands/UploadScan.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use App\Models\File;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Storage;
use Symfony\Component\Console\Command\Command as CommandAlias;

class UploadScan extends Command
{
Expand Down Expand Up @@ -60,6 +61,6 @@ public function handle()
$file->save();
$this->info("- Added $file_path to the database");
}
return 1;
return CommandAlias::SUCCESS;
}
}

0 comments on commit ecc450f

Please sign in to comment.