Skip to content

Commit

Permalink
integrate access token refreshing with per-character scheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
recursivetree committed Sep 5, 2024
1 parent 9aae4d9 commit 10f6886
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/Seat/Buckets/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
use Seat\Eveapi\Bus\Character;
use Seat\Eveapi\Bus\Corporation;
use Seat\Eveapi\Jobs\Character\Roles;
use Seat\Eveapi\Jobs\Token\RefreshAccessToken;
use Seat\Eveapi\Models\Bucket;
use Seat\Eveapi\Models\RefreshToken;
use Seat\Eveapi\Models\RefreshTokenSchedule;
Expand Down Expand Up @@ -140,8 +141,7 @@ private function dispatchCharacterEsiUpdate(RefreshToken $token): void
*/
private function dispatchCharacterTokenKeepAlive(RefreshToken $token): void
{
// TODO: add a job that only requests a new access token instead of a random esi job. This will require some eseye rework
Roles::dispatch($token)->onQueue('characters');
RefreshAccessToken::dispatch($token)->onQueue('characters');
}

/**
Expand Down

0 comments on commit 10f6886

Please sign in to comment.