Skip to content

Commit

Permalink
Revert "Fix: Cast model key to integer to improve query performance o…
Browse files Browse the repository at this point in the history
…n Postgr…" (#526)

This reverts commit 3f57a4c.
  • Loading branch information
driesvints authored Jul 23, 2024
1 parent 3f57a4c commit d61eb74
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/PersonalAccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ public static function findToken($token)

[$id, $token] = explode('|', $token, 2);

if ((new static())->getKeyType() === 'int') {
$id = (int) $id;
}

if ($instance = static::find($id)) {
return hash_equals($instance->token, hash('sha256', $token)) ? $instance : null;
}
Expand Down

0 comments on commit d61eb74

Please sign in to comment.