Skip to content

Commit

Permalink
fix: rename bus calls
Browse files Browse the repository at this point in the history
  • Loading branch information
warlof committed Dec 15, 2020
1 parent 0d34bc6 commit 3cb29f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Observers/CharacterRoleObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

use Exception;
use Illuminate\Database\Eloquent\Model;
use Seat\Console\Bus\CorporationTokenShouldUpdate;
use Seat\Console\Bus\CorporationBus;
use Seat\Eveapi\Models\Character\CharacterRole;
use Seat\Eveapi\Models\RefreshToken;
use Seat\Web\Models\User;
Expand Down Expand Up @@ -55,7 +55,7 @@ public function created(CharacterRole $role)

try {
// enqueue jobs related to the character corporation
$job = new CorporationTokenShouldUpdate($token->affiliation->corporation_id, $token);
$job = new CorporationBus($token->affiliation->corporation_id, $token);
$job->fire();
} catch (Exception $e) {
logger()->error($e->getMessage());
Expand Down
4 changes: 2 additions & 2 deletions src/Observers/RefreshTokenObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

use Exception;
use Illuminate\Database\Eloquent\Model;
use Seat\Console\Bus\CharacterTokenShouldUpdate;
use Seat\Console\Bus\CharacterBus;
use Seat\Eveapi\Models\RefreshToken;
use Seat\Web\Models\User;

Expand All @@ -41,7 +41,7 @@ class RefreshTokenObserver extends AbstractSquadObserver
public function created(RefreshToken $token)
{
try {
$job = new CharacterTokenShouldUpdate($token);
$job = new CharacterBus($token);
$job->fire();
} catch (Exception $e) {
logger()->error($e->getMessage());
Expand Down

0 comments on commit 3cb29f5

Please sign in to comment.