Skip to content

Commit

Permalink
fix: only fire refresh token schedule update if token exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Crypta-Eve committed Sep 7, 2024
1 parent 7793b74 commit f168045
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Listeners/CharacterFilterDataUpdatedTokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class CharacterFilterDataUpdatedTokens
{
public static function handle(CharacterFilterDataUpdate $update)
{
CharacterSchedulingRule::updateRefreshTokenSchedule($update->character->refresh_token);
if (!is_null($update->character->refresh_token))
CharacterSchedulingRule::updateRefreshTokenSchedule($update->character->refresh_token);
}
}

0 comments on commit f168045

Please sign in to comment.