Skip to content

Commit

Permalink
Avoid deprecated Discourse API call
Browse files Browse the repository at this point in the history
  • Loading branch information
edwh committed Aug 9, 2021
1 parent 000446c commit 30f5d2d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/Console/Commands/SyncDiscourseUsernames.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public function handle()
if (property_exists($discourseUser, 'single_sign_on_record') &&
$discourseUser->single_sign_on_record &&
property_exists($discourseUser->single_sign_on_record, 'external_email')) {
$this::info("Find user {$discourseUser->single_sign_on_record->external_email}");
$user = User::where('email', $discourseUser->single_sign_on_record->external_email)->first();

if (! is_null($user)) {
Expand Down

0 comments on commit 30f5d2d

Please sign in to comment.