Fix patreon role check (again)
Life without typecast is hard
This commit is contained in:
@@ -120,7 +120,8 @@ class DiscordAuthController extends Controller
|
||||
}
|
||||
|
||||
// Only update if something actually changed
|
||||
if ($user->is_patreon !== $isPatreon) {
|
||||
$isPatreonOld = (bool) $user->is_patreon;
|
||||
if ($isPatreonOld !== $isPatreon) {
|
||||
$user->update([
|
||||
'is_patreon' => $isPatreon,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user