Fix patreon role check (again)

Life without typecast is hard
This commit is contained in:
2026-01-16 15:11:28 +00:00
parent 3a77c4320d
commit 5a8dd12cb8

View File

@@ -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,
]);