Skip to content

Commit

Permalink
Update app/Http/Controllers/PreferenceController.php
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Morgan <[email protected]>
  • Loading branch information
MarcyLina and andrewmile authored Sep 27, 2024
1 parent 084a471 commit 7ab5d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/PreferenceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function update(Request $request)
$user->unsubscribe_token = Str::random(60);
} else {
$user->unsubscribe_token = null;
}
$user->unsubscribe_token = $user->is_subscriber ? Str::random(60) : null;

$user->save();
}
Expand Down

0 comments on commit 7ab5d6e

Please sign in to comment.